aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-08-08 12:00:14 -0700
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-08-08 13:03:55 -0700
commit28d7c2dca806301ad324a49da290dc236d384b44 (patch)
tree8d62c0988cd1e66acb82390635204c4c66450f8e /components/script_layout_interface
parentc420a870c1b1bca7e740e8bb737ef2bcdb1a139d (diff)
downloadservo-28d7c2dca806301ad324a49da290dc236d384b44.tar.gz
servo-28d7c2dca806301ad324a49da290dc236d384b44.zip
layout: Take into account the client point for fixed positioned stacking contexts.
Diffstat (limited to 'components/script_layout_interface')
-rw-r--r--components/script_layout_interface/message.rs2
-rw-r--r--components/script_layout_interface/rpc.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs
index 14580be4881..5d16aeffb0a 100644
--- a/components/script_layout_interface/message.rs
+++ b/components/script_layout_interface/message.rs
@@ -98,7 +98,7 @@ pub enum ReflowQueryType {
ContentBoxQuery(TrustedNodeAddress),
ContentBoxesQuery(TrustedNodeAddress),
NodeOverflowQuery(TrustedNodeAddress),
- HitTestQuery(Point2D<f32>, bool),
+ HitTestQuery(Point2D<f32>, Point2D<f32>, bool),
NodeGeometryQuery(TrustedNodeAddress),
NodeLayerIdQuery(TrustedNodeAddress),
NodeScrollGeometryQuery(TrustedNodeAddress),
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs
index 21cac2a19c2..a470e76286e 100644
--- a/components/script_layout_interface/rpc.rs
+++ b/components/script_layout_interface/rpc.rs
@@ -38,7 +38,7 @@ pub trait LayoutRPC {
/// 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>;
+ fn nodes_from_point(&self, page_point: Point2D<f32>, client_point: Point2D<f32>) -> Vec<UntrustedNodeAddress>;
}
pub struct ContentBoxResponse(pub Rect<Au>);