[wpt-sync] Sync PR 65112 - Postpone layout detach of moved elements until slot assignment is clean
Categories
(Core :: Graphics: Canvas2D, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65112 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65112
Details from upstream follow.
Stefan Zager <szager@chromium.org> wrote:
Postpone layout detach of moved elements until slot assignment is clean
When Node::FlatTreeParentChanged() runs, slot assignments may be dirty
and it's not safe to update them. As a result, any logic that relies on
analyzing the flat tree is unreliable at best. One such bit of logic is
checking whether a Node has moved into a display-locked subtree to
determine whether its LayoutObject should be detached.With this CL, rather than doing that check in FlatTreeParentChanged,
we instead accumulate a set of Nodes that should check their
display-locked status when slot assignments are clean. The list is
processed, and LayoutObject's detached as appropriate, during the
subsequent style update, after updating slot assignments.Fixed: 581933391,577332498
Change-Id: Ia21e7a7b9946d98b15fc6178e584449d3763101a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8731922
Reviewed-by: Mason Freed \<masonf@chromium.org>
Commit-Queue: Stefan Zager \<szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1743159}
| Assignee | ||
Updated•9 days ago
|
| Assignee | ||
Comment 1•9 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123189
| Assignee | ||
Comment 2•9 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK : 1
FAIL: 1
Chrome
OK : 1
FAIL: 1
Safari
OK : 1
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/canvas/element/manual/draw-element-image/privacy/box-reflect-images-ignored.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not draw cross-origin box-reflect images:
FAIL(Chrome:FAIL, Safari:FAIL)
- drawElementImage does not draw cross-origin box-reflect images:
Comment 4•8 days ago
|
||
| bugherder | ||
Description
•