aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-08-08 04:04:54 +0800
committerChristian Persch <chpe@src.gnome.org>2006-08-08 04:04:54 +0800
commit99a17a025c2ef82f38b8392f3ce060bf526e8fbd (patch)
treebebced8a492ee2caeb02069939a42e407ebc6000 /embed/mozilla
parent44303f0ba0921983df056a62dfe580907fc05a0c (diff)
downloadgsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar
gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.gz
gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.bz2
gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.lz
gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.xz
gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.zst
gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.zip
Don't start search on <embed> and <object> elements.
2006-08-07 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EventContext.cpp: Don't start search on <embed> and <object> elements.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EventContext.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index dfb29dac6..27166d976 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -44,6 +44,7 @@
#include <nsIDOMHTMLAreaElement.h>
#include <nsIDOMHTMLBodyElement.h>
#include <nsIDOMHTMLButtonElement.h>
+#include <nsIDOMHTMLEmbedElement.h>
#include <nsIDOMHTMLImageElement.h>
#include <nsIDOMHTMLInputElement.h>
#include <nsIDOMHTMLIsIndexElement.h>
@@ -1060,10 +1061,14 @@ EventContext::CheckKeyPress (nsIDOMKeyEvent *aEvent)
nsCOMPtr<nsIDOMHTMLTextAreaElement> textArea;
nsCOMPtr<nsIDOMHTMLSelectElement> selectElement;
nsCOMPtr<nsIDOMHTMLIsIndexElement> indexElement;
+ nsCOMPtr<nsIDOMHTMLObjectElement> objectElement;
+ nsCOMPtr<nsIDOMHTMLEmbedElement> embedElement;
if ((textArea = do_QueryInterface (target)) ||
(selectElement = do_QueryInterface (target)) ||
- (indexElement = do_QueryInterface (target))) return retval;
+ (indexElement = do_QueryInterface (target)) ||
+ (objectElement = do_QueryInterface (target)) ||
+ (embedElement = do_QueryInterface (target))) return retval;
/* check for design mode */
nsCOMPtr<nsIDOMNode> node (do_QueryInterface (target, &rv));