Closed Bug 2085500 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 64009 - [html-in-canvas] Fix nested drawable under 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 64009 into mozilla-central (this bug is closed when the sync is complete).

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

Philip Rogers <pdr@chromium.org> wrote:

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

This patch sets CanvasDrawableState::content_effect to the drawable's
parent effect [1] (current_effect) instead of
canvas_fragment.ContentsEffect(). This fixes a mistake where we
missed some updates when adding support for drawable descendants.
UpdateElementCanvasTransform (should be refactored to split out the
effect update) runs prior to UpdateEffect and updates the
context_.current_effect to the nearest drawable's effect. This effect
can be used directly for the canvas drawable state, rather than using
the canvas's effect. This change fixes an issue later in the pipeline
when the wrong effect was used for the drawable's recording.

[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/paint/object_paint_properties.h;drc=3798f301b5516b1757d199eb5b64f10238ef21b1;l=151

Bug: 562108899
Change-Id: I3c52e5b627ed67135b18a341d9bd71a249127076
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8613228
Reviewed-by: Stefan Zager \<szager@chromium.org>
Commit-Queue: Philip Rogers \<pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1724302}

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

FAIL : 1

Safari

TIMEOUT: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 24 days 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: