Bug 1680115 [wpt PR 26705] - Avoid problem of decomposited effect on SVG root, a...
commit19c1cc1a98780522a245ab5b5f1dcf3e7872922b
authorXianzhu Wang <wangxianzhu@chromium.org>
Fri, 4 Dec 2020 03:53:26 +0000 (4 03:53 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 4 Dec 2020 10:45:55 +0000 (4 10:45 +0000)
tree6fb96c5bfcaf6f3e65ec8e041c33f09598653934
parentc198dade85a4440d77cc18ed5613735e382540d9
Bug 1680115 [wpt PR 26705] - Avoid problem of decomposited effect on SVG root, a=testonly

Automatic update from web-platform-tests
Avoid problem of decomposited effect on SVG root

This CL avoids the problem by

- Disabling compositing of SVG child for will-change:top etc. which
  don't apply.

- Including CompositingReason::kSVGRoot on the effect node (if exists)
  on SVG root to prevent the effect node from being decomposited during
  PaintArtifactCompositor::Update(), to ensure the composited layer for
  SVG root will create a render surface when needed. We still need to
  create a better solution for this (tracked by crbug.com/1154097).

Because CompositingReason::kSVGRoot is for pre-CompositeAfterPaint
CompositeSVG only to create a GraphicsLayer with
ShouldCreateLayersAfterPaint, this CL also disable the logic for
CompositeAfterPaint.

Bug: 1152691
Change-Id: Ic194501698c0afd5a058647344f812077ed07709

--

wpt-commits: 545c70be7ba0f19e557b529ebb8fdf6e56eeb3cd
wpt-pr: 26705
testing/web-platform/tests/css/css-masking/mask-image/mask-image-svg-child-will-change.html [new file with mode: 0644]
testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-svg-child-will-change-ref.html [new file with mode: 0644]