mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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.
This commit is contained in:
parent
0293aa2e52
commit
4e60412c6d
3 changed files with 9 additions and 21 deletions
|
@ -57,7 +57,7 @@ impl LayoutRPC for LayoutRPCImpl {
|
|||
}
|
||||
|
||||
/// Requests the node containing the point of interest.
|
||||
fn hit_test(&self, _: TrustedNodeAddress, point: Point2D<f32>) -> Result<HitTestResponse, ()> {
|
||||
fn hit_test(&self, point: Point2D<f32>) -> Result<HitTestResponse, ()> {
|
||||
let point = Point2D::new(Au::from_f32_px(point.x), Au::from_f32_px(point.y));
|
||||
let resp = {
|
||||
let &LayoutRPCImpl(ref rw_data) = self;
|
||||
|
@ -82,8 +82,7 @@ impl LayoutRPC for LayoutRPCImpl {
|
|||
Err(())
|
||||
}
|
||||
|
||||
fn mouse_over(&self, _: TrustedNodeAddress, point: Point2D<f32>)
|
||||
-> Result<MouseOverResponse, ()> {
|
||||
fn mouse_over(&self, point: Point2D<f32>) -> Result<MouseOverResponse, ()> {
|
||||
let mut mouse_over_list: Vec<DisplayItemMetadata> = vec!();
|
||||
let point = Point2D::new(Au::from_f32_px(point.x), Au::from_f32_px(point.y));
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue