aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/AutoWindowModalState.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-10-07 01:17:12 +0800
committerChristian Persch <chpe@src.gnome.org>2006-10-07 01:17:12 +0800
commitea7da1c6abfa87614a9dd484afc26cccf93cf37f (patch)
treedec37b7a2521eda2419fafcbcf779a45231aeee3 /embed/mozilla/AutoWindowModalState.cpp
parent7fe19ecdd665138af915d404ca57e969704c516e (diff)
downloadgsoc2013-epiphany-ea7da1c6abfa87614a9dd484afc26cccf93cf37f.tar
gsoc2013-epiphany-ea7da1c6abfa87614a9dd484afc26cccf93cf37f.tar.gz
gsoc2013-epiphany-ea7da1c6abfa87614a9dd484afc26cccf93cf37f.tar.bz2
gsoc2013-epiphany-ea7da1c6abfa87614a9dd484afc26cccf93cf37f.tar.lz
gsoc2013-epiphany-ea7da1c6abfa87614a9dd484afc26cccf93cf37f.tar.xz
gsoc2013-epiphany-ea7da1c6abfa87614a9dd484afc26cccf93cf37f.tar.zst
gsoc2013-epiphany-ea7da1c6abfa87614a9dd484afc26cccf93cf37f.zip
Revert part of the last change, we don't need the top window here.
2006-10-06 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/AutoWindowModalState.cpp: Revert part of the last change, we don't need the top window here.
Diffstat (limited to 'embed/mozilla/AutoWindowModalState.cpp')
-rw-r--r--embed/mozilla/AutoWindowModalState.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/embed/mozilla/AutoWindowModalState.cpp b/embed/mozilla/AutoWindowModalState.cpp
index 20100e60c..c6185107b 100644
--- a/embed/mozilla/AutoWindowModalState.cpp
+++ b/embed/mozilla/AutoWindowModalState.cpp
@@ -27,12 +27,7 @@ AutoWindowModalState::AutoWindowModalState (nsIDOMWindow *aWindow)
{
#ifdef HAVE_GECKO_1_8_1
if (aWindow) {
- nsresult rv;
- nsCOMPtr<nsIDOMWindow> topWin;
- rv = aWindow->GetTop (getter_AddRefs (topWin));
- if (NS_SUCCEEDED (rv)) {
- mWindow = do_QueryInterface (topWin);
- }
+ mWindow = do_QueryInterface (aWindow);
NS_ASSERTION (mWindow, "Should have a window here!");
}