haikuwebkit/LayoutTests/platform/mac/compositing
Sam Weinig 6f0af12b32 Separated models don't get opacity set on them at all
https://bugs.webkit.org/show_bug.cgi?id=224763

Reviewed by Tim Horton.

Source/WebCore:

Test: model-element/model-element-graphics-layers-opacity.html

This certainly won't be the way things land once separated/optimized
layer semantics are better understood, but for now, it is useful to
explicitly propogate the opacity of the owing layer to the content
layer if the content layer is a model layer. In the future, we may want
to do this for any separated child (and conversely, only to the content
layer if it is separated), but this will allow us to play a bit futher
in our experimentation.

Also adds support for dumping the opacity of a content layer to make
this testable.

* platform/graphics/GraphicsLayerClient.h:
* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::setContentsToModel):
(WebCore::GraphicsLayerCA::purposeNameForInnerLayer const):
(WebCore::GraphicsLayerCA::dumpInnerLayer const):
* testing/Internals.cpp:
(WebCore::toPlatformLayerTreeFlags):
* testing/Internals.h:
* testing/Internals.idl:

LayoutTests:

Add new test which use the macOS/iOS only platformLayerTreeAsText
internals function to show that opacity is getting set on the content
layer.

* model-element/model-element-graphics-layers-opacity-expected.txt: Added.
* model-element/model-element-graphics-layers-opacity.html: Added.
* platform/gtk/TestExpectations:
* platform/wpe/TestExpectations:
* platform/win/TestExpectations:

* compositing/video/video-object-position-expected.txt:
* compositing/visible-rect/mask-layer-coverage-expected.txt:
* fullscreen/full-screen-layer-dump-expected.txt:
* platform/ios/compositing/video/video-object-position-expected.txt:
* platform/ios/compositing/visible-rect/mask-layer-coverage-expected.txt:
* platform/mac/compositing/images/direct-image-object-fit-expected.txt:
* platform/mac/compositing/reflections/direct-image-object-fit-reflected-expected.txt:
* platform/mac/compositing/video/video-object-fit-expected.txt:
Update results for update content layer type dumping.


Canonical link: https://commits.webkit.org/236807@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-20 23:21:06 +00:00
..
animation
backing
canvas
color-matching
contents-format
contents-opaque
culling
framesets
geometry play.google.com: App preview images are clipped 2021-01-09 13:14:18 +00:00
iframes
images Separated models don't get opacity set on them at all 2021-04-20 23:21:06 +00:00
layer-creation Scrolling on https://www.apple.com/ipad-air/ can jitter on certain sections 2021-02-19 06:36:10 +00:00
masks
objects
overflow
plugins
reflections Separated models don't get opacity set on them at all 2021-04-20 23:21:06 +00:00
repaint
rtl
scaling
shadows
tiling
transitions
video Separated models don't get opacity set on them at all 2021-04-20 23:21:06 +00:00
visibility
visible-rect
webgl
compositing-visible-descendant-expected.png
compositing-visible-descendant-expected.txt
direct-image-compositing-expected.png
direct-image-compositing-expected.txt
fixed-image-loading-expected.txt
fixed-position-scroll-offset-history-restore-expected.png
flat-with-transformed-child-expected.png
generated-content-expected.png
generated-content-expected.txt
layers-inside-overflow-scroll-expected.png
layers-inside-overflow-scroll-expected.txt
self-painting-layers-expected.png
self-painting-layers-expected.txt
sibling-positioning-expected.png
sibling-positioning-expected.txt
text-on-large-layer-expected.png
text-on-large-layer-expected.txt