Closed Bug 1854203 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42031 - [DL] Ensure grid placement data is dirty.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[DL] Ensure grid placement data is dirty.

After:
https://chromium-review.googlesource.com/c/chromium/src/+/4859555

We started to return nullptr from NGBlockNode::FirstChild. This works
but grid has an additional placement cache which depends on if we
have a first child or not.

Invalidate the placement cache when the display lock context marks
a node for layout.

Bug: 1482765, 1482771
Change-Id: I3a47a192f938c4c14b3c2d1a868d78e30765c3db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4875138
Reviewed-by: Morten Stenshorne \<mstensho@chromium.org>
Reviewed-by: Alison Maher \<almaher@microsoft.com>
Commit-Queue: Ian Kilpatrick \<ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1198308}

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by csabou@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/0bbd07920d00 [wpt PR 42031] - [DL] Ensure grid placement data is dirty., a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.