diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-02-20 21:36:24 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-03-02 20:14:15 +0100 |
commit | 48dee6413dae56e3a41832a8dc415d5cc6741fa8 (patch) | |
tree | a126899e943cce1ca7a5a2cc80531cbfbf0f16de /components/script/layout_interface.rs | |
parent | c3786437a39faf2c52b66f7dcc3b8a9430a62dbc (diff) | |
download | servo-48dee6413dae56e3a41832a8dc415d5cc6741fa8.tar.gz servo-48dee6413dae56e3a41832a8dc415d5cc6741fa8.zip |
script/layout: Refactor mouse_over since it now basically uses hit_test
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)] |