Skip to content

devtools: Only highlight fragments that share the first encountered SpatialId for a node#42330

Merged
mrobinson merged 2 commits intoservo:mainfrom
eerii:spatial-id-debug-assertion
Feb 4, 2026
Merged

devtools: Only highlight fragments that share the first encountered SpatialId for a node#42330
mrobinson merged 2 commits intoservo:mainfrom
eerii:spatial-id-debug-assertion

Conversation

@eerii
Copy link
Copy Markdown
Member

@eerii eerii commented Feb 4, 2026

Remove the assertion and only highlight the first SpatialId if there are multiple ones. It should be the bottom-most.

Testing: This fixes the test case at #40851 (comment), which can only be tested manually. In general, there are not automated Devtools tests for these kind of interactions.
Fixes: #40851
Fixes: #41142

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 4, 2026
@mrobinson mrobinson changed the title devtools: Only highlight first SpatialId devtools: Only highlight fragments that share the first encountered SpatialId for a node Feb 4, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 4, 2026
Co-authored-by: Martin Robinson <[email protected]>
Signed-off-by: eri <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 4, 2026
@mrobinson mrobinson added this pull request to the merge queue Feb 4, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 4, 2026
Merged via the queue into servo:main with commit 818fc71 Feb 4, 2026
32 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 4, 2026
@eerii eerii deleted the spatial-id-debug-assertion branch February 4, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

devtools panic on m.huaweimossel.com devtool/layout: Panic on simple scenario

3 participants