Closed Bug 2095415 Opened 9 days ago Closed 8 days ago

[wpt-sync] Sync PR 65112 - Postpone layout detach of moved elements until slot assignment is clean

Categories

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

task

Tracking

()

RESOLVED FIXED
163 Branch
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}

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

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

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/312ac884cc6c https://hg.mozilla.org/integration/autoland/rev/37fb228aabe1 [wpt PR 65112] - Postpone layout detach of moved elements until slot assignment is clean, a=testonly
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.