Closed Bug 2076384 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63038 - [layout] Change ContainingBlock to return LayoutBox.

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[layout] Change ContainingBlock to return LayoutBox.

The difference between LayoutBlock and LayoutBox has been minimal for a
while now.

We have things like "ContainingNGBox" which we use to correctly
invalidate up the LayoutBox chain when we need it.

The latest issue was triggered by a LayoutReplaced object being allowed
to have CanContainFixedPositionObjects return true, but
ContainingBlock() would skip over any LayoutReplaced objects.

This resulted in an incorrect layout invalidation (leaving the tree
stale) during an anchor position style update.

In a previous patch we changed the return type of ContainingBlock to a
LayoutBox - but not changing its functionality.

This patch completes the change, by allowing LayoutBoxes to be
(actually) returned from ContainingBlock.

Bug: 564720399
Change-Id: Ia7d120a691097f35cbc8053c62ad61583e1d5779
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8469756
Reviewed-by: Morten Stenshorne \<mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick \<ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1706438}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 527 tests

Status Summary

Firefox

OK : 258
PASS: 1[GitHub] 42[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 13585[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 13764[Gecko-android-em-14-x86_64-debug-geckoview] 13765[Gecko-android-em-14-x86_64-lite-opt-geckoview] 13766[Gecko-android-em-14-x86_64-opt-geckoview] 13781[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 13784[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 108[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 134[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 137[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 151[Gecko-android-em-14-x86_64-opt-geckoview] 152[Gecko-android-em-14-x86_64-lite-opt-geckoview] 153[Gecko-android-em-14-x86_64-debug-geckoview]

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ce2e97fef48c https://hg.mozilla.org/integration/autoland/rev/f948e863bcd7 [wpt PR 63038] - [layout] Change ContainingBlock to return LayoutBox., a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.