summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-12-08 10:00:36 -0500
committerCary Clark <cary@android.com>2009-12-08 10:13:13 -0500
commit44c05fb68509c9d10a2e780c05a77a4d9f78124f (patch)
treebd8705bfd5baff1d8a658c824e0f5aeee023a697 /WebKit
parent4cf840fc0046a79568cb800af5d85d529c1411b2 (diff)
downloadexternal_webkit-44c05fb68509c9d10a2e780c05a77a4d9f78124f.zip
external_webkit-44c05fb68509c9d10a2e780c05a77a4d9f78124f.tar.gz
external_webkit-44c05fb68509c9d10a2e780c05a77a4d9f78124f.tar.bz2
exclude from cache nodes that are entirely clipped out
Google's real time search has many results outside of an overflow div that should be ignored by the nav cache. Make it so. fixes http://b/2298478
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/nav/CacheBuilder.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/WebKit/android/nav/CacheBuilder.cpp b/WebKit/android/nav/CacheBuilder.cpp
index 219e4c6..522d381 100644
--- a/WebKit/android/nav/CacheBuilder.cpp
+++ b/WebKit/android/nav/CacheBuilder.cpp
@@ -1197,12 +1197,9 @@ void CacheBuilder::BuildFrame(Frame* root, Frame* frame,
}
if (hasClip) {
if (clip.isEmpty())
- continue; // skip this node if completely clipped out
- else if (cachedNode.clip(clip) == false) {
- cachedNode.setBounds(clip);
- cachedNode.cursorRings().append(clip);
- isUnclipped = true;
- }
+ continue; // skip this node if clip prevents all drawing
+ else if (cachedNode.clip(clip) == false)
+ continue; // skip this node if outside of the clip
}
cachedNode.setNavableRects();
cachedNode.setExport(exported);