summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-12 15:42:27 -0500
committerLeon Scroggins <scroggo@google.com>2010-01-12 15:42:27 -0500
commit0c380afc34e67040e79a4bd7559302053dcbc1f2 (patch)
tree223302e12145d7e6e337b56c1cad15cb6569ef05 /WebKit
parent838afd1be683057ebaf5cf85359bf9a567602b7b (diff)
downloadexternal_webkit-0c380afc34e67040e79a4bd7559302053dcbc1f2.zip
external_webkit-0c380afc34e67040e79a4bd7559302053dcbc1f2.tar.gz
external_webkit-0c380afc34e67040e79a4bd7559302053dcbc1f2.tar.bz2
Compare Node pointers rather than CachedNode pointers.
Fixes http://b/issue?id=2369028
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/nav/WebView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index e379a63..0426337 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -626,8 +626,8 @@ CachedRoot* getFrameCache(FrameCachePermission allowNewer)
fixCursor();
if (oldFocus && m_frameCacheUI) {
const CachedNode* newFocus = m_frameCacheUI->currentFocus();
- if (newFocus && oldFocus != newFocus && newFocus->isTextInput()
- && oldFocus->isTextInput()
+ if (newFocus && oldFocus->nodePointer() != newFocus->nodePointer()
+ && oldFocus->isTextInput() && newFocus->isTextInput()
&& newFocus != m_frameCacheUI->currentCursor()) {
// The focus has changed. We may need to update things.
LOG_ASSERT(m_javaGlue.m_obj, "A java object was not associated with this native WebView!");