2011-04-28 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Apr 2011 05:19:10 +0000 (05:19 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Apr 2011 05:19:10 +0000 (05:19 +0000)
commitf525623b34bd8bf22d355e9ba79c9183e358f750
tree50a6ee09dcd7567551b050f83dfaaa4622964a33
parent701c8c5cf7ddcafd3d1dfda84858a881ef6dee68
2011-04-28  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Mask placement on composited layer is incorrect sometimes
        https://bugs.webkit.org/show_bug.cgi?id=59775

        The mask layer always has the same size as its owning GraphicsLayer,
        so it needs to share the same offsetFromRenderer as well. This fixes
        the offset at which the mask layer contents are painted in cases where
        that offset is non-zero, for example when outline style bloats all of
        the layer sizes.

        Test: compositing/masks/layer-mask-placement.html

        * rendering/RenderLayerBacking.cpp:
        (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@85303 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/compositing/masks/layer-mask-placement-expected.png [new file with mode: 0644]
LayoutTests/compositing/masks/layer-mask-placement-expected.txt [new file with mode: 0644]
LayoutTests/compositing/masks/layer-mask-placement.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerBacking.cpp