diff options
author | Cary Clark <cary@android.com> | 2010-04-22 15:48:12 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-04-22 15:48:12 -0400 |
commit | 5076efcd053da090680d27026645b6a7d26ca79b (patch) | |
tree | 6735026b9dacc6b3c9a17b5fb791d39a59bf567c /WebKit | |
parent | 55ab51c027055eb6f5ab777712cf4aa058ab7891 (diff) | |
download | external_webkit-5076efcd053da090680d27026645b6a7d26ca79b.zip external_webkit-5076efcd053da090680d27026645b6a7d26ca79b.tar.gz external_webkit-5076efcd053da090680d27026645b6a7d26ca79b.tar.bz2 |
don't hide transparent nodes
A node may be transparent if the body of the node is drawn earlier.
In this case, the node may not be tested to see if it has been
occluded by later drawing, since no drawing inside the scope of
the node is actually visible. So, skip the hidden test for
transparent nodes.
Change-Id: Ib748e9e7b86252f791ee68198d1d794fb4591a88
http://b/2582455
Diffstat (limited to 'WebKit')
-rw-r--r-- | WebKit/android/nav/CachedRoot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp index 115a0f9..2d37a2a 100644 --- a/WebKit/android/nav/CachedRoot.cpp +++ b/WebKit/android/nav/CachedRoot.cpp @@ -1083,7 +1083,7 @@ WebCore::String CachedRoot::imageURI(int x, int y) const bool CachedRoot::maskIfHidden(BestData* best) const { const CachedNode* bestNode = best->mNode; - if (bestNode->isUnclipped()) + if (bestNode->isUnclipped() || bestNode->isTransparent()) return false; const CachedFrame* frame = best->mFrame; SkPicture* picture = frame->picture(bestNode); |