[chromium] Consistent checking for clipped rects when we need the computed result...
authordanakj@chromium.org <danakj@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 00:21:46 +0000 (00:21 +0000)
committerdanakj@chromium.org <danakj@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 00:21:46 +0000 (00:21 +0000)
commit0e36bf5d4761aedc4035b109ca31f08803ac28d8
tree87aaf41a7b8632b4a038ce77ab31b4a2d00c5aaa
parent963ea2dbd0bda0a926001f205dc04600d9eaaafd
[chromium] Consistent checking for clipped rects when we need the computed result enclosed within the real result
https://bugs.webkit.org/show_bug.cgi?id=83543

Reviewed by Adrienne Walker.

It should not be possible to make a rect in layer space that is clipped
by the camera but for which the screen space transform gives a
rectilinear output. But use consistent methods for checking that the
result remains enclosed within the actual pixels.

One day when clipped is true, we can find an interior axis-aligned rect
within the clipped result, and checking clipped explicitly makes this
more clear.

Covered by existing tests.

* platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
(WebCore::computeOcclusionBehindLayer):
(WebCore::::markOccludedBehindLayer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog