aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-11-16 15:50:30 +0100
committerMs2ger <Ms2ger@gmail.com>2015-11-16 15:53:49 +0100
commit4e60412c6d1a54cd05b4ce75be1fc0e296d4ce69 (patch)
tree6785a2c76aad74d5c60752bd54a31d1264e86985 /components/script/layout_interface.rs
parent0293aa2e522c9c400dc7deed4ab4595ff8bb3123 (diff)
downloadservo-4e60412c6d1a54cd05b4ce75be1fc0e296d4ce69.tar.gz
servo-4e60412c6d1a54cd05b4ce75be1fc0e296d4ce69.zip
Remove the unused arguments to hit_test and mouse_over.
I don't think this code is called when there is no document element, but I added assertions to make sure we notice in case I was wrong.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index d18098bf6c1..8c49cbcfb5f 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -101,8 +101,8 @@ 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, node: TrustedNodeAddress, point: Point2D<f32>) -> Result<HitTestResponse, ()>;
- fn mouse_over(&self, node: TrustedNodeAddress, point: Point2D<f32>) -> Result<MouseOverResponse, ()>;
+ fn hit_test(&self, point: Point2D<f32>) -> Result<HitTestResponse, ()>;
+ fn mouse_over(&self, point: Point2D<f32>) -> Result<MouseOverResponse, ()>;
/// Query layout for the resolved value of a given CSS property
fn resolved_style(&self) -> ResolvedStyleResponse;
fn offset_parent(&self) -> OffsetParentResponse;