Closed Bug 1793072 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36129 - Store actual fragmentainer offset in constraint space.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Morten Stenshorne <mstensho@chromium.org> wrote:

Store actual fragmentainer offset in constraint space.

The constraint space used to store the block-offset of the nearest block
formatting context root (within the fragmentainer), rather than the
actual block-offset of the element being laid out. Since this offset was
part of the cache key, it could cause false cache hits, as the test
included demonstrates. The actual block-offset of a fragment may change,
even if the block formatting context stays where it was.

Storing the block-offset within the fragmentainer on the constraint
space means that we need to always [*] go back and relayout if the BFC
block-offset resolution results in anything different from the estimated
offset.

[*] Only when block fragmentation is involved, though.

This issue was discovered while working on caching fragmented nodes (an
upcoming CL).

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

Component: web-platform-tests → Layout
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Whiteboard: [wptsync downstream error] → [wptsync downstream]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f01da10a11e [wpt PR 36129] - Store actual fragmentainer offset in constraint space., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.