From 44c05fb68509c9d10a2e780c05a77a4d9f78124f Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 8 Dec 2009 10:00:36 -0500 Subject: 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 --- WebKit/android/nav/CacheBuilder.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'WebKit/android') 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); -- cgit v1.1