diff options
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r-- | components/script/layout_interface.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index 4ad7c241f14..3976f0a8d20 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -105,9 +105,7 @@ pub trait LayoutRPC { /// Requests the geometry of this node. Used by APIs such as `clientTop`. fn node_geometry(&self) -> NodeGeometryResponse; /// Requests the node containing the point of interest - fn hit_test(&self, point: Point2D<f32>) -> Result<HitTestResponse, ()>; - /// Query layout for the topmost node under the mouse. - fn mouse_over(&self, point: Point2D<f32>) -> Result<MouseOverResponse, ()>; + fn hit_test(&self, point: Point2D<f32>, update_cursor: bool) -> Result<HitTestResponse, ()>; /// Query layout for the resolved value of a given CSS property fn resolved_style(&self) -> ResolvedStyleResponse; fn offset_parent(&self) -> OffsetParentResponse; @@ -140,7 +138,6 @@ pub struct NodeGeometryResponse { pub client_rect: Rect<i32>, } pub struct HitTestResponse(pub UntrustedNodeAddress); -pub struct MouseOverResponse(pub UntrustedNodeAddress); pub struct ResolvedStyleResponse(pub Option<String>); #[derive(Clone)] |