LibWeb: Key per-pass layout state by arena slot index - #10886
Merged
kalenikaliaksandr merged 2 commits intoJul 27, 2026
Merged
Conversation
Contained absolutely positioned children must be consumed in document order. Their list was sorted by layout index, but a partial tree rebuild only reindexes its rebuilt subtree. Rebuilt and reused positioned siblings can therefore disagree with tree order in one containing block. Compare actual tree positions when inserting children. This ensures that rebuilt and reused positioned siblings stay in document order during partial layout without depending on per-document indices.
The separate per-document index used for per-pass layout state grows sparse between full passes. That forces periodic full relayouts through the dense-range veto even though each live arena slot is already unique and free-list allocation keeps active indices compact between passes.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
💤 Files with no reviewable changes (6)
📝 WalkthroughWalkthroughLayout node indexing is removed in favor of arena slot indices. Layout-state storage and absolute-position ordering use arena slots and tree order, while partial relayout no longer bails out on dense-range growth. Related tests now require partial passes without full-layout passes. ChangesArena-slot layout state migration
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
Comment |
kalenikaliaksandr
merged commit Jul 27, 2026
f731425
into
LadybirdBrowser:master
13 of 14 checks passed
This was referenced Jul 28, 2026
This was referenced Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The separate per-document index used for per-pass layout state grows sparse between full passes. That forces periodic full relayouts through the dense-range veto even though each live arena slot is already unique and free-list allocation keeps active indices compact between passes.