Skip to content

Conversation

@yezhizhen
Copy link
Member

@yezhizhen yezhizhen commented Nov 25, 2025

The original attempt is to remove it. But we can't do this. Add doc to explain why.

Testing: This should change nothing.
Fixes: Preparing for #40663.

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
@yezhizhen yezhizhen requested a review from mrobinson as a code owner November 25, 2025 07:02
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 25, 2025
@yezhizhen yezhizhen marked this pull request as draft November 25, 2025 07:11
@yezhizhen
Copy link
Member Author

No. We can't do this. The external_id field actually refers to the final node that is actually scrolled. But the one in hit_test_result can be different.

@yezhizhen
Copy link
Member Author

I'll take the opportunity to update the doc.

This reverts commit 010ec2c.
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
@yezhizhen yezhizhen force-pushed the remove-redundant-scroll branch from a8c2435 to 874f15c Compare November 25, 2025 07:30
@yezhizhen yezhizhen changed the title compositor: Remove ExternalScrollId in ScrollResult compositor: Update doc of ExternalScrollId in ScrollResult Nov 25, 2025
@yezhizhen yezhizhen marked this pull request as ready for review November 25, 2025 07:31
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
@yezhizhen yezhizhen force-pushed the remove-redundant-scroll branch from 874f15c to 5c6c8d6 Compare November 25, 2025 07:34
Copy link
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.

Thank you for the clarification here.

Comment on lines 63 to 64
/// This is necessary as the `external_scroll_id` of [CompositorHitTestResult] can be different.
/// Currently, we scroll the first possible inclusive ancestor.
Copy link
Member

Choose a reason for hiding this comment

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

I suggest a small introduction to the field as well:

Suggested change
/// This is necessary as the `external_scroll_id` of [CompositorHitTestResult] can be different.
/// Currently, we scroll the first possible inclusive ancestor.
/// The [`ExternalScrollId`] of the node that was actually scrolled.
///
/// Note that this may be an inclusive ancestor of `external_scroll_id` in
/// [`Self::hit_test_result`].

Copy link
Member Author

Choose a reason for hiding this comment

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

I will reword a bit.

"this may be an inclusive ancestor" -> "this is an inclusive ancestor"

Copy link
Member

Choose a reason for hiding this comment

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

Ah, makes sense!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 25, 2025
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 25, 2025
@yezhizhen yezhizhen enabled auto-merge November 25, 2025 09:02
@yezhizhen yezhizhen added this pull request to the merge queue Nov 25, 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 Nov 25, 2025
Merged via the queue into servo:main with commit 44df9ee Nov 25, 2025
35 checks passed
@yezhizhen yezhizhen deleted the remove-redundant-scroll branch November 25, 2025 09:49
@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 Nov 25, 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