Subpixel rendering: Transform origin is miscalculated when RenderLayer's
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2014 14:25:34 +0000 (14:25 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2014 14:25:34 +0000 (14:25 +0000)
commit7fcfc1ccf5a3a664abfbfec2f15b846d3197097f
tree4a5d0de4af4448d5431bbe85ccc03722e6035d3c
parent31585af7fb45bee49d5a9a824de2bd8487774aaf
Subpixel rendering: Transform origin is miscalculated when RenderLayer's
offsetfromRenderer has device pixel fraction value.
https://bugs.webkit.org/show_bug.cgi?id=129859

Reviewed by Simon Fraser.

We need to calculate the transformed origin using the painting coordinates to produce
pixel precise result.

Source/WebCore:

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

LayoutTests:

* compositing/columns/composited-columns-expected.txt:
* compositing/geometry/limit-layer-bounds-opacity-transition-expected.txt:
* compositing/repaint/resize-repaint-expected.txt:
* platform/mac/compositing/repaint/invalidations-on-composited-layers-expected.txt:
* platform/mac/compositing/visibility/visibility-image-layers-dynamic-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/compositing/columns/composited-columns-expected.txt
LayoutTests/compositing/geometry/limit-layer-bounds-opacity-transition-expected.txt
LayoutTests/compositing/hidpi-transform-with-render-layer-on-fractional-pixel-value-expected.html [new file with mode: 0644]
LayoutTests/compositing/hidpi-transform-with-render-layer-on-fractional-pixel-value.html [new file with mode: 0644]
LayoutTests/compositing/repaint/resize-repaint-expected.txt
LayoutTests/platform/mac/compositing/repaint/invalidations-on-composited-layers-expected.txt
LayoutTests/platform/mac/compositing/visibility/visibility-image-layers-dynamic-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerBacking.cpp
Source/WebCore/rendering/RenderLayerBacking.h