diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-11-23 04:48:41 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-11-23 04:48:41 +0800 |
commit | cb47435ec293928496c39cf7e8bed389c381e42f (patch) | |
tree | be695d03a3df880efc7bcc59f5ac402427d280d6 | |
parent | 28610d97e19068fcfab85d06b7ed8d621cb0bfdd (diff) | |
download | gsoc2013-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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,11 @@ 2004-11-22 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/EventContext.cpp: + + Fix missing 'else if' and a superflous failure check. + +2004-11-22 Christian Persch <chpe@cvs.gnome.org> + * src/prefs-dialog.c: (add_system_language_entry): Fix ngettext usage. 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; } |