Use the flat tree for layout and style invalidation#35769
Merged
simonwuelker merged 1 commit intoservo:mainfrom Mar 6, 2025
Merged
Use the flat tree for layout and style invalidation#35769simonwuelker merged 1 commit intoservo:mainfrom
simonwuelker merged 1 commit intoservo:mainfrom
Conversation
|
🔨 Triggering try run (#13632607852) for Linux (WPT) |
|
🔨 Triggering try run (#13632900818) for Linux (WPT) |
|
Test results for linux-wpt-layout-2020 from try job (#13632900818): Flaky unexpected result (18)
Stable unexpected results that are known to be intermittent (13)
|
|
✨ Try run (#13632900818) succeeded. |
mrobinson
reviewed
Mar 4, 2025
7ee9742 to
8b865ce
Compare
8b865ce to
cd34703
Compare
cd34703 to
132fdd7
Compare
Contributor
Author
|
I included a few more related changes that fix the crash on wpt.fyi (: |
132fdd7 to
db04f25
Compare
|
🔨 Triggering try run (#13674514164) for Linux (WPT) |
|
🔨 Triggering try run (#13674638541) for Linux (WPT) |
|
Test results for linux-wpt-layout-2020 from try job (#13674638541): Flaky unexpected result (18)
Stable unexpected results that are known to be intermittent (14)
Stable unexpected results (1)
|
|
|
When invalidating layout, computing dirty roots and such, we want to work in the flat tree. That means that the children of slots are their assigned slottables, parents of assigned slottables are their slots and the children of an element include children of a potential shadow dom. Signed-off-by: Simon Wülker <[email protected]>
db04f25 to
7940624
Compare
3 tasks
mrobinson
approved these changes
Mar 6, 2025
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.
Layout invalidation currently happens on the regular dom. That is incorrect and we should use the flat tree instead.
The flat tree is equivalent to the DOM, except for the following:
For example, when an assigned slottable becomes dirty then we want to mark its assigned slot as dirty, not it's parent.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors