aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorRizky Luthfianto <mrluthfianto@gmail.com>2016-04-03 21:44:01 +0700
committerRizky Luthfianto <mrluthfianto@gmail.com>2016-04-03 21:44:01 +0700
commit07584b9f29bf99362b74c75ea4291e3438768291 (patch)
treed1939f9ab7e6766249e76e8df9b6690206cc11dc /components/script/layout_interface.rs
parent88d29e537cb3e92cc39804eabca7cb347c1417e9 (diff)
downloadservo-07584b9f29bf99362b74c75ea4291e3438768291.tar.gz
servo-07584b9f29bf99362b74c75ea4291e3438768291.zip
Implement Document#elementsFromPoint
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 0d063f47bc1..07d8ac47edc 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -113,6 +113,8 @@ pub trait LayoutRPC {
fn offset_parent(&self) -> OffsetParentResponse;
/// Query layout for the resolve values of the margin properties for an element.
fn margin_style(&self) -> MarginStyleResponse;
+
+ fn nodes_from_point(&self, point: Point2D<f32>) -> Vec<UntrustedNodeAddress>;
}
#[derive(Clone)]