aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EventContext.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-28 00:39:50 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-28 00:39:50 +0800
commit03518bcc5c5aa9a9149315e932f84a0aee2d44ce (patch)
treeee8ca665c481ecfa6c3e59a68a3abf59e4e91523 /embed/mozilla/EventContext.cpp
parent971cc4759cceb6a5842bf4d2016eb5c8e71896a8 (diff)
downloadgsoc2013-epiphany-03518bcc5c5aa9a9149315e932f84a0aee2d44ce.tar
gsoc2013-epiphany-03518bcc5c5aa9a9149315e932f84a0aee2d44ce.tar.gz
gsoc2013-epiphany-03518bcc5c5aa9a9149315e932f84a0aee2d44ce.tar.bz2
gsoc2013-epiphany-03518bcc5c5aa9a9149315e932f84a0aee2d44ce.tar.lz
gsoc2013-epiphany-03518bcc5c5aa9a9149315e932f84a0aee2d44ce.tar.xz
gsoc2013-epiphany-03518bcc5c5aa9a9149315e932f84a0aee2d44ce.tar.zst
gsoc2013-epiphany-03518bcc5c5aa9a9149315e932f84a0aee2d44ce.zip
Solving the wrapper mess Episode 3. Rename to EphyBrowser and add sanity
2003-10-27 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EphyWrapper.cpp: * embed/mozilla/EphyWrapper.h: * embed/mozilla/EventContext.cpp: * embed/mozilla/EventContext.h: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/mozilla/mozilla-embed.h: Solving the wrapper mess Episode 3. Rename to EphyBrowser and add sanity checks. GtkMozEmbed initialize the browser on realize, that means until that we shouldnt use most of the EphyBrowser methods. I'm quite sure there are not such cases in current implementation, otherwise we would have had problems also before. Though better avoid problems in the future.
Diffstat (limited to 'embed/mozilla/EventContext.cpp')
-rw-r--r--embed/mozilla/EventContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 061448aa8..1ef9de9eb 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -56,9 +56,9 @@ EventContext::~EventContext ()
{
}
-nsresult EventContext::Init (EphyWrapper *wrapper)
+nsresult EventContext::Init (EphyBrowser *browser)
{
- mWrapper = wrapper;
+ mBrowser = browser;
mDOMDocument = nsnull;
return NS_OK;
@@ -771,7 +771,7 @@ nsresult EventContext::IsPageFramed (nsIDOMNode *node, PRBool *Framed)
nsresult result;
nsCOMPtr<nsIDOMDocument> mainDocument;
- result = mWrapper->GetDocument (getter_AddRefs(mainDocument));
+ result = mBrowser->GetDocument (getter_AddRefs(mainDocument));
if (NS_FAILED(result) || !mainDocument) return NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMDocument> nodeDocument;