mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
script: Move point_in_initial_containing_block
calculation to script (#38520)
Instead of calculating this value in the compositor, calculate it in `ScriptThread` now that it is straightforward to get this value from the layout spatial tree. This allows removing some tricky callback code in the Compositor. Testing: This shouldn't change any observable behavior so is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
9d4004135b
commit
005164df4a
4 changed files with 18 additions and 53 deletions
|
@ -884,10 +884,6 @@ pub struct CompositorHitTestResult {
|
|||
/// The hit test point in the item's viewport.
|
||||
pub point_in_viewport: Point2D<f32, CSSPixel>,
|
||||
|
||||
/// The hit test point relative to the root scroll node content origin / initial
|
||||
/// containing block.
|
||||
pub point_relative_to_initial_containing_block: Point2D<f32, CSSPixel>,
|
||||
|
||||
/// The [`ExternalScrollId`] of the scroll tree node associated with this hit test item.
|
||||
pub external_scroll_id: ExternalScrollId,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue