aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-29 08:08:01 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-29 08:08:01 +0800
commit33f74133e5d7626a2aabaa25c50ab2e9d4425505 (patch)
treed843be8bbb930d6f6e81113a41a11b97c648cd99 /embed/mozilla/EphyBrowser.cpp
parentec20564f0a61b4f1dc58d9ec490d4b66a6543ae0 (diff)
downloadgsoc2013-epiphany-33f74133e5d7626a2aabaa25c50ab2e9d4425505.tar
gsoc2013-epiphany-33f74133e5d7626a2aabaa25c50ab2e9d4425505.tar.gz
gsoc2013-epiphany-33f74133e5d7626a2aabaa25c50ab2e9d4425505.tar.bz2
gsoc2013-epiphany-33f74133e5d7626a2aabaa25c50ab2e9d4425505.tar.lz
gsoc2013-epiphany-33f74133e5d7626a2aabaa25c50ab2e9d4425505.tar.xz
gsoc2013-epiphany-33f74133e5d7626a2aabaa25c50ab2e9d4425505.tar.zst
gsoc2013-epiphany-33f74133e5d7626a2aabaa25c50ab2e9d4425505.zip
We cant cache mDOMDocument, it changes for every document loaded. Remove
2003-10-29 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EventContext.cpp: We cant cache mDOMDocument, it changes for every document loaded. Remove some unused methods from definition.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r--embed/mozilla/EphyBrowser.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 7579d8712..8d1b3cdd0 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -99,7 +99,7 @@ nsresult EphyBrowser::Init (GtkMozEmbed *mozembed)
/* This will instantiate an about:blank doc if necessary */
nsCOMPtr<nsIDOMDocument> domDocument;
- rv = mDOMWindow->GetDocument (getter_AddRefs (mDOMDocument));
+ rv = mDOMWindow->GetDocument (getter_AddRefs (domDocument));
if (NS_FAILED (rv)) return NS_ERROR_FAILURE;
mEventListener = new EphyEventListener();
@@ -367,10 +367,8 @@ nsresult EphyBrowser::GetZoom (float *aZoom)
nsresult EphyBrowser::GetDocument (nsIDOMDocument **aDOMDocument)
{
- NS_ENSURE_ARG_POINTER(aDOMDocument);
- NS_IF_ADDREF(*aDOMDocument = mDOMDocument);
-
- return NS_OK;
+ nsCOMPtr<nsIDOMDocument> domDocument;
+ return mDOMWindow->GetDocument (aDOMDocument);
}
nsresult EphyBrowser::GetTargetDocument (nsIDOMDocument **aDOMDocument)