aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-23 04:48:41 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-23 04:48:41 +0800
commitcb47435ec293928496c39cf7e8bed389c381e42f (patch)
treebe695d03a3df880efc7bcc59f5ac402427d280d6 /embed/mozilla
parent28610d97e19068fcfab85d06b7ed8d621cb0bfdd (diff)
downloadgsoc2013-epiphany-cb47435ec293928496c39cf7e8bed389c381e42f.tar
gsoc2013-epiphany-cb47435ec293928496c39cf7e8bed389c381e42f.tar.gz
gsoc2013-epiphany-cb47435ec293928496c39cf7e8bed389c381e42f.tar.bz2
gsoc2013-epiphany-cb47435ec293928496c39cf7e8bed389c381e42f.tar.lz
gsoc2013-epiphany-cb47435ec293928496c39cf7e8bed389c381e42f.tar.xz
gsoc2013-epiphany-cb47435ec293928496c39cf7e8bed389c381e42f.tar.zst
gsoc2013-epiphany-cb47435ec293928496c39cf7e8bed389c381e42f.zip
Fix missing 'else if' and a superflous failure check.
2004-11-22 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EventContext.cpp: Fix missing 'else if' and a superflous failure check.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EventContext.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 604a5096f..2af47d56d 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -476,7 +476,7 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget,
info->context = EMBED_CONTEXT_NONE;
return NS_OK;
}
- if (g_ascii_strcasecmp (tag.get(), "area") == 0)
+ else if (g_ascii_strcasecmp (tag.get(), "area") == 0)
{
info->context |= EMBED_CONTEXT_LINK;
nsCOMPtr <nsIDOMHTMLAreaElement> area =
@@ -514,8 +514,6 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget,
return NS_ERROR_FAILURE;
SetStringProperty ("background_image",
bgimg.get());
- if (NS_FAILED (rv))
- return NS_ERROR_FAILURE;
has_background = PR_TRUE;
}