summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-06-29 17:34:54 -0400
committerCary Clark <cary@android.com>2009-06-29 17:34:54 -0400
commit3caac2cb826894a28957e026cd2d0088d2e37083 (patch)
treeac281419f63969d65d572c00bcba6ec84bdc3dc1 /WebKit/android/nav
parent9ef86237529ed76780c62ff0e49c8a0a85a6562c (diff)
downloadexternal_webkit-3caac2cb826894a28957e026cd2d0088d2e37083.zip
external_webkit-3caac2cb826894a28957e026cd2d0088d2e37083.tar.gz
external_webkit-3caac2cb826894a28957e026cd2d0088d2e37083.tar.bz2
Don't clip out nodes if the clip is an empty rectangle
http://b/issue?id=1945476
Diffstat (limited to 'WebKit/android/nav')
-rw-r--r--WebKit/android/nav/CacheBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/nav/CacheBuilder.cpp b/WebKit/android/nav/CacheBuilder.cpp
index ac24668..207de0c 100644
--- a/WebKit/android/nav/CacheBuilder.cpp
+++ b/WebKit/android/nav/CacheBuilder.cpp
@@ -1180,7 +1180,7 @@ void CacheBuilder::BuildFrame(Frame* root, Frame* frame,
clip.intersect(parentClip);
hasClip = true;
}
- if (hasClip && cachedNode.clip(clip) == false) {
+ if (hasClip && !clip.isEmpty() && cachedNode.clip(clip) == false) {
cachedNode.setBounds(clip);
cachedNode.cursorRings().append(clip);
isUnclipped = true;