haikuwebkit/LayoutTests/compositing/tiling/coverage-adjustment-seconda...

67 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

Content disappears on CSS parallax example https://bugs.webkit.org/show_bug.cgi?id=210732 Source/WebCore: <rdar://problem/61997636> Reviewed by Darin Adler. If scrolling affects the computation of coverage rect of a TiledBacking, we plumb that expanded coverage back into TransformState which is maintained during GraphicsLayer flushing, and it's used to compute coverage rect for descendants. It's passed into TransformState::setLastPlanarSecondaryQuad(), which has to map it back into the coordinate system of the last flattening ancestor. However, TransformState::mapQuad() had a missing return and the quad mapping was wrong. The new code is now the same as TransformState::mappedPoint() (you can see where the copy/paste error came from). Test: compositing/tiling/coverage-adjustment-secondary-quad-mapping.html * platform/graphics/transforms/TransformState.cpp: (WebCore::TransformState::mapQuad const): (WebCore::TransformState::flattenWithTransform): LayoutTests: Reviewed by Darin Adler. * compositing/tiling/coverage-adjustment-secondary-quad-mapping-expected.txt: Added. * compositing/tiling/coverage-adjustment-secondary-quad-mapping.html: Added. * platform/ios-wk2/compositing/tiling/coverage-adjustment-secondary-quad-mapping-expected.txt: Added. * platform/mac-wk1/compositing/tiling/coverage-adjustment-secondary-quad-mapping-expected.txt: Added. Canonical link: https://commits.webkit.org/223629@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-20 17:14:51 +00:00
 
(GraphicsLayer
(anchor 0.00 0.00)
(bounds 785.00 620.00)
(backingStoreAttached 1)
(children 1
(GraphicsLayer
(bounds 785.00 620.00)
(contentsOpaque 1)
(backingStoreAttached 1)
(children 1
(GraphicsLayer
(position 8.00 20.00)
(anchor 0.50 0.50)
(bounds 769.00 580.00)
(backingStoreAttached 1)
(children 1
(GraphicsLayer
(position 20.00 0.00)
(bounds 600.00 580.00)
(drawsContent 1)
(backingStoreAttached 1)
(children 1
(GraphicsLayer
(offsetFromRenderer width=1 height=1)
(position 1.00 1.00)
(bounds 583.00 578.00)
(backingStoreAttached 1)
(childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [-307.50 -290.00 1.00 -1.00] [0.00 0.00 0.00 1.00])
Content disappears on CSS parallax example https://bugs.webkit.org/show_bug.cgi?id=210732 Source/WebCore: <rdar://problem/61997636> Reviewed by Darin Adler. If scrolling affects the computation of coverage rect of a TiledBacking, we plumb that expanded coverage back into TransformState which is maintained during GraphicsLayer flushing, and it's used to compute coverage rect for descendants. It's passed into TransformState::setLastPlanarSecondaryQuad(), which has to map it back into the coordinate system of the last flattening ancestor. However, TransformState::mapQuad() had a missing return and the quad mapping was wrong. The new code is now the same as TransformState::mappedPoint() (you can see where the copy/paste error came from). Test: compositing/tiling/coverage-adjustment-secondary-quad-mapping.html * platform/graphics/transforms/TransformState.cpp: (WebCore::TransformState::mapQuad const): (WebCore::TransformState::flattenWithTransform): LayoutTests: Reviewed by Darin Adler. * compositing/tiling/coverage-adjustment-secondary-quad-mapping-expected.txt: Added. * compositing/tiling/coverage-adjustment-secondary-quad-mapping.html: Added. * platform/ios-wk2/compositing/tiling/coverage-adjustment-secondary-quad-mapping-expected.txt: Added. * platform/mac-wk1/compositing/tiling/coverage-adjustment-secondary-quad-mapping-expected.txt: Added. Canonical link: https://commits.webkit.org/223629@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-20 17:14:51 +00:00
(children 1
(GraphicsLayer
(position 0.00 -400.00)
(anchor 0.00 0.00)
(bounds 583.00 12800.00)
(usingTiledLayer 1)
(preserves3D 1)
(drawsContent 1)
(backingStoreAttached 1)
(children 2
(GraphicsLayer
(position 20.00 0.00)
(anchor 0.50 0.50)
(bounds 467.00 1300.00)
(backingStoreAttached 1)
(transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 -220.00 -2.00 1.00])
)
(GraphicsLayer
(position 0.00 200.00)
(bounds 583.00 600.00)
(contentsOpaque 1)
(drawsContent 1)
(backingStoreAttached 1)
)
)
)
)
)
)
)
)
)
)
)
)
)