aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EventContext.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/EventContext.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/EventContext.cpp')
-rw-r--r--embed/mozilla/EventContext.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index dd497f533..b67cd7231 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -23,7 +23,6 @@
#endif
#include "EventContext.h"
-#include "nsIContentViewer.h"
#include "nsIDOMEventTarget.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLInputElement.h"
@@ -771,11 +770,8 @@ nsresult EventContext::IsPageFramed (nsIDOMNode *node, PRBool *Framed)
{
nsresult result;
- nsCOMPtr<nsIContentViewer> contentViewer;
- result = mBrowser->GetContentViewer (getter_AddRefs(contentViewer));
-
nsCOMPtr<nsIDOMDocument> mainDocument;
- result = contentViewer->GetDOMDocument (getter_AddRefs(mainDocument));
+ result = mBrowser->GetDocument (getter_AddRefs(mainDocument));
if (NS_FAILED(result) || !mainDocument) return NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMDocument> nodeDocument;