Skip to content

layout: Merge BaseFragment and BaseFragmentInfo#41177

Merged
Loirooriol merged 1 commit intoservo:mainfrom
Loirooriol:base-fragment
Dec 10, 2025
Merged

layout: Merge BaseFragment and BaseFragmentInfo#41177
Loirooriol merged 1 commit intoservo:mainfrom
Loirooriol:base-fragment

Conversation

@Loirooriol
Copy link
Copy Markdown
Contributor

These structs used to be different when they were added in #29699: BaseFragment had a debug_id field, while BaseFragmentInfo didn't. But this field was later removed in #35001, so the structs became identical.

Therefore, this patch just unifies them. I'm picking BaseFragmentInfo as the name, since it was the most frequently used of the two.

Testing: Not needed, no change in behavior

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 10, 2025
Copy link
Copy Markdown
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup. There are some clippy errors, but otherwise this is great.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 10, 2025
These structs used to be different when they were added in servo#29699:
`BaseFragment` had a `debug_id` field, while `BaseFragmentInfo` didn't.
But this field was later removed in servo#35001, so the structs became
identical.

Therefore, this just unified them. I'm picking `BaseFragmentInfo` as the
name, since it was the most frequently used of the two.

Signed-off-by: Oriol Brufau <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 10, 2025
@Loirooriol Loirooriol added this pull request to the merge queue Dec 10, 2025
@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 Dec 10, 2025
Merged via the queue into servo:main with commit f5ecb34 Dec 10, 2025
32 checks passed
@Loirooriol Loirooriol deleted the base-fragment branch December 10, 2025 14:36
@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 Dec 10, 2025
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.

3 participants