diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-10-29 07:41:25 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-29 07:41:25 +0800 |
commit | ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0 (patch) | |
tree | 51d6002792014467827015879614db0b1486be77 /embed/mozilla/EventContext.cpp | |
parent | b46894849a0793af0e19e860d4900ad7929fa1e9 (diff) | |
download | gsoc2013-epiphany-ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0.tar gsoc2013-epiphany-ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0.tar.gz gsoc2013-epiphany-ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0.tar.bz2 gsoc2013-epiphany-ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0.tar.lz gsoc2013-epiphany-ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0.tar.xz gsoc2013-epiphany-ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0.tar.zst gsoc2013-epiphany-ec20564f0a61b4f1dc58d9ec490d4b66a6543ae0.zip |
Make some vars private, remove an unused one.
2003-10-29 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
Make some vars private, remove an unused one.
* embed/mozilla/EventContext.cpp:
Use the content dom document to determine
is_framed_page.
Diffstat (limited to 'embed/mozilla/EventContext.cpp')
-rw-r--r-- | embed/mozilla/EventContext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 1ef9de9eb..dd497f533 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -23,6 +23,7 @@ #endif #include "EventContext.h" +#include "nsIContentViewer.h" #include "nsIDOMEventTarget.h" #include "nsIDocument.h" #include "nsIDOMHTMLInputElement.h" @@ -769,9 +770,12 @@ nsresult EventContext::GetKeyEventInfo (nsIDOMKeyEvent *aKeyEvent, EphyEmbedEven nsresult EventContext::IsPageFramed (nsIDOMNode *node, PRBool *Framed) { nsresult result; + + nsCOMPtr<nsIContentViewer> contentViewer; + result = mBrowser->GetContentViewer (getter_AddRefs(contentViewer)); nsCOMPtr<nsIDOMDocument> mainDocument; - result = mBrowser->GetDocument (getter_AddRefs(mainDocument)); + result = contentViewer->GetDOMDocument (getter_AddRefs(mainDocument)); if (NS_FAILED(result) || !mainDocument) return NS_ERROR_FAILURE; nsCOMPtr<nsIDOMDocument> nodeDocument; |