diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-17 02:05:52 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-17 02:05:52 +0530 |
commit | 20d26853e145e275695463662b6cee334cd27085 (patch) | |
tree | 534bcebbea51f45f0a3d124e6d9d9c9ec39c00de /components/script/layout_interface.rs | |
parent | db94fda10e3351c96a0df61099d2fdfa481cc62b (diff) | |
parent | 4e60412c6d1a54cd05b4ce75be1fc0e296d4ce69 (diff) | |
download | servo-20d26853e145e275695463662b6cee334cd27085.tar.gz servo-20d26853e145e275695463662b6cee334cd27085.zip |
Auto merge of #8548 - Ms2ger:unused-tna, r=pcwalton
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.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8548)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r-- | components/script/layout_interface.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index e0ad2d55034..7c85d9c681e 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; |