haikuwebkit/LayoutTests/transforms
Antoine Quint 7bf6e2c44c Updating an individual transform CSS property has no visual change when composited
https://bugs.webkit.org/show_bug.cgi?id=217769
<rdar://problem/70344280>

Reviewed by Simon Fraser.

Source/WebCore:

Ensure that changes to the translate, scale and rotate CSS properties have the same
effect than when the transform property is changed for composited elements.

Tests: transforms/2d/rotate-change-composited.html
       transforms/2d/scale-change-composited.html
       transforms/2d/translate-change-composited.html

* platform/graphics/transforms/RotateTransformOperation.h:
* platform/graphics/transforms/ScaleTransformOperation.h:
* platform/graphics/transforms/TranslateTransformOperation.h:
* rendering/RenderLayerCompositor.cpp:
(WebCore::recompositeChangeRequiresGeometryUpdate):
(WebCore::styleHas3DTransformOperation):
(WebCore::styleTransformOperationsAreRepresentableIn2D):
(WebCore::RenderLayerCompositor::requiresCompositingForTransform const):
(WebCore::RenderLayerCompositor::layerHas3DContent const):

LayoutTests:

Add new tests that check that changing the value of one of the individual transform
CSS properties when the element is composited yields a visual change.

* transforms/2d/rotate-change-composited-expected.html: Added.
* transforms/2d/rotate-change-composited.html: Added.
* transforms/2d/scale-change-composited-expected.html: Added.
* transforms/2d/scale-change-composited.html: Added.
* transforms/2d/translate-change-composited-expected.html: Added.
* transforms/2d/translate-change-composited.html: Added.

Canonical link: https://commits.webkit.org/230510@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@268547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-15 19:49:00 +00:00
..
2d Updating an individual transform CSS property has no visual change when composited 2020-10-15 19:49:00 +00:00
3d
cssmatrix-2d-interface-expected.txt
cssmatrix-2d-interface.xhtml
cssmatrix-3d-interface-expected.txt
cssmatrix-3d-interface.xhtml
hittest-translated-content-off-to-infinity-and-back-expected.html
hittest-translated-content-off-to-infinity-and-back.html
no_transform_hit_testing-expected.txt
no_transform_hit_testing.html
perspective-is-containing-block-for-absolute-expected.html
perspective-is-containing-block-for-absolute.html
preserve3d-is-containing-block-for-absolute-expected.html
preserve3d-is-containing-block-for-absolute.html
svg-vs-css.xhtml
transform-box-expected.html
transform-box.html
transform-is-containing-block-for-absolute-expected.html
transform-is-containing-block-for-absolute.html