Repository navigation
script: Make visible selection updates flat tree aware - #47931
Merged
mrobinson merged 5 commits intoSep 11, 2026
Merged
Conversation
|
🔨 Triggering try run (#34343635414) for Linux (WPT) |
|
Test results for linux-wpt from try job (#34343635414): Flaky unexpected result (31)
Stable unexpected results that are known to be intermittent (12)
|
|
✨ Try run (#34343635414) succeeded. |
mrobinson
force-pushed
the
selection-visible-selection-in-shadow-tree
branch
from
September 9, 2026 12:07
86e9147 to
ebc529e
Compare
mrobinson
marked this pull request as draft
September 9, 2026 16:16
mrobinson
force-pushed
the
selection-visible-selection-in-shadow-tree
branch
from
September 9, 2026 18:56
ebc529e to
0d9a6cb
Compare
mrobinson
marked this pull request as ready for review
September 9, 2026 18:56
SimonSapin
reviewed
Sep 10, 2026
Comment on lines
+61
to
+62
| /// This is like [`Range`], but in the flat tree, which means that it is `None` | ||
| /// if the selection is unrenderable and boundaries are in flat tree order. |
Member
There was a problem hiding this comment.
At first I read this as "it is None if ([…] and boundaries are in flat tree order)" but a second reading I think it should be:
Suggested change
| /// This is like [`Range`], but in the flat tree, which means that it is `None` | |
| /// if the selection is unrenderable and boundaries are in flat tree order. | |
| /// This is like [`Range`], but in the flat tree, which means that: | |
| /// | |
| /// * It is `None` if the selection is unrenderable. | |
| /// * Boundaries are in flat tree order. |
SimonSapin
approved these changes
Sep 10, 2026
This change reworks the visible selection flag update traversal to be flat tree aware. In particular: - Selection boundaries that are not in the flat tree make the selection unrenderable. - Selection boundaries now may be inverted if their flat tree positions have a different order than their composed tree positions. - A new visible range is preserved before layout. This is consulted by layout to ensure that start and end boundaries are consistent with flat tree reality. - The traversal is refactored to be a bit more maintainable. Signed-off-by: Martin Robinson <[email protected]>
And move loop consuming it closer to its definition Signed-off-by: Simon Sapin <[email protected]>
Signed-off-by: Simon Sapin <[email protected]>
Signed-off-by: Simon Sapin <[email protected]>
Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
selection-visible-selection-in-shadow-tree
branch
from
September 11, 2026 04:46
9db3272 to
774fca2
Compare
mrobinson
enabled auto-merge
September 11, 2026 04:46
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
This change reworks the visible selection flag update traversal to be flat tree aware. In particular: - Selection boundaries that are not in the flat tree make the selection unrenderable. - Selection boundaries now may be inverted if their flat tree positions have a different order than their composed tree positions. - A new visible range is preserved before layout. This is consulted by layout to ensure that start and end boundaries are consistent with flat tree reality. - The traversal is refactored to be a bit more maintainable. Testing: This causes a WPT test to start passing. Fixes: servo#47120. Fixes: servo#47121. --------- Signed-off-by: Martin Robinson <[email protected]> Signed-off-by: Simon Sapin <[email protected]> Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Simon Sapin <[email protected]>
hhhwsqhhh
pushed a commit
to hhhwsqhhh/servo
that referenced
this pull request
Oct 12, 2026
This change reworks the visible selection flag update traversal to be flat tree aware. In particular: - Selection boundaries that are not in the flat tree make the selection unrenderable. - Selection boundaries now may be inverted if their flat tree positions have a different order than their composed tree positions. - A new visible range is preserved before layout. This is consulted by layout to ensure that start and end boundaries are consistent with flat tree reality. - The traversal is refactored to be a bit more maintainable. Testing: This causes a WPT test to start passing. Fixes: servo#47120. Fixes: servo#47121. --------- Signed-off-by: Martin Robinson <[email protected]> Signed-off-by: Simon Sapin <[email protected]> Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Simon Sapin <[email protected]>
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.
This change reworks the visible selection flag update traversal to be
flat tree aware. In particular:
unrenderable.
have a different order than their composed tree positions.
layout to ensure that start and end boundaries are consistent with
flat tree reality.
Testing: This causes a WPT test to start passing.
Fixes: #47120.
Fixes: #47121.