diff options
author | Cary Clark <cary@android.com> | 2009-08-14 11:44:05 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2009-08-14 15:27:15 -0400 |
commit | 5207ee5379660814c62bf3cb3f1c70051e152a86 (patch) | |
tree | 1870759e620a76892bd4b08db0e89ec7e8ba8e41 /WebKit | |
parent | b12a01676d083061bfcdc9efe98ac9d03dd59802 (diff) | |
download | external_webkit-5207ee5379660814c62bf3cb3f1c70051e152a86.zip external_webkit-5207ee5379660814c62bf3cb3f1c70051e152a86.tar.gz external_webkit-5207ee5379660814c62bf3cb3f1c70051e152a86.tar.bz2 |
rebuild nav cache if cursor is moved to invisible node
http://b/issue?id=2023504
moving the trackball to a node that used to be visible
but is no longer visible now triggers a rebuild of
the nav cache
Diffstat (limited to 'WebKit')
-rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index 3e4254d..c16d0a3 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -1088,7 +1088,7 @@ void WebViewCore::updateCacheOnNodeChange() return; if (CacheBuilder::validNode(m_mainFrame, frame, node)) { RenderObject* renderer = node->renderer(); - if (renderer) { + if (renderer && renderer->style()->visibility() != HIDDEN) { IntRect absBox = renderer->absoluteBoundingBoxRect(); int globalX, globalY; CacheBuilder::GetGlobalOffset(frame, &globalX, &globalY); |