diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-12-27 20:09:26 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-12-27 20:09:26 +0800 |
commit | 7051f24e35678f4d1f167f634bfc17d52af97551 (patch) | |
tree | 480298dd063408461b9642d3ce486529e85f3b15 | |
parent | d641360ee8e645b9662bf8d13aa80adf8764ba22 (diff) | |
download | gsoc2013-epiphany-7051f24e35678f4d1f167f634bfc17d52af97551.tar gsoc2013-epiphany-7051f24e35678f4d1f167f634bfc17d52af97551.tar.gz gsoc2013-epiphany-7051f24e35678f4d1f167f634bfc17d52af97551.tar.bz2 gsoc2013-epiphany-7051f24e35678f4d1f167f634bfc17d52af97551.tar.lz gsoc2013-epiphany-7051f24e35678f4d1f167f634bfc17d52af97551.tar.xz gsoc2013-epiphany-7051f24e35678f4d1f167f634bfc17d52af97551.tar.zst gsoc2013-epiphany-7051f24e35678f4d1f167f634bfc17d52af97551.zip |
Be extra safe.
svn path=/branches/gnome-2-24/; revision=8646
-rw-r--r-- | embed/mozilla/EventContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 12e0ea42e..e86975664 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -676,7 +676,11 @@ nsresult EventContext::GetTargetCoords (nsIDOMEventTarget *aTarget, PRInt32 *aX, #endif PRInt32 x = 0, y = 0; +#ifdef HAVE_GECKO_1_9_1 + while (elem && htmlElem) +#else while (htmlElem) +#endif { PRInt32 val; #ifdef HAVE_GECKO_1_9_1 |