Closed Bug 2085501 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 64010 - [html-in-canvas] Fix nested canvas drawable in filter

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 64010 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64010
Details from upstream follow.

Philip Rogers <pdr@chromium.org> wrote:

[html-in-canvas] Fix nested canvas drawable in filter

This patch updates UpdateElementCanvasTransform() to walk past
non-drawable effects when falling back to canvas_contents.Effect() for
a nested content=drawable canvas inside a drawable subtree.

When a nested content=drawable canvas was inside a filtered drawable
ancestor (or was itself a filtered drawable), its
canvas_contents.Effect() was the filter effect node
(IsInDrawableCanvasSubtree() && !HasCanvasDrawableState()). Top-level
drawables in the nested canvas fell back to canvas_contents.Effect()
because UpdateForChildren() on the nested canvas reset
current_effect to Root(). Parenting inner drawables to the filter
effect prevented PaintArtifactCompositor from decompositing the filter
into the enclosing drawable's effect and triggered a CHECK failure.
Walking effect up while IsInDrawableCanvasSubtree() && !HasCanvasDrawableState() ensures inner drawables are parented to the
enclosing drawable's effect node.

Fixed: 562108899, 575053148
Change-Id: I190b3cfb47d1ed9839f1ec79d0271f5f12e6efdb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8613587
Reviewed-by: Stefan Zager \<szager@chromium.org>
Commit-Queue: Philip Rogers \<pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1724305}

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

Ran 4 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 152 tests

Status Summary

Firefox

OK : 139
PASS : 12
FAIL : 231
TIMEOUT: 1
ERROR : 8
NOTRUN : 25

Chrome

CRASH : 1

Safari

TIMEOUT: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a9f17dab81c2 https://hg.mozilla.org/integration/autoland/rev/c963a14de235 [wpt PR 64010] - [html-in-canvas] Fix nested canvas drawable in filter, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: