aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorDaniel Robertson <danlrobertson89@gmail.com>2016-03-01 16:45:16 +0000
committerDaniel Robertson <danlrobertson89@gmail.com>2016-03-11 18:22:16 +0000
commit16d2778ece77e317cc7b664b490c60d949f827a3 (patch)
treee73eace869b71f9163d38ae2b56cb8e5eb97db73 /components/script/layout_interface.rs
parent5fbed88248069f1943399d28885249ee0adc89b2 (diff)
downloadservo-16d2778ece77e317cc7b664b490c60d949f827a3.tar.gz
servo-16d2778ece77e317cc7b664b490c60d949f827a3.zip
Add scrollWidth/Height to element interface
Add the scrollWidth and scrollHeight extensions to the element interface.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 9a8cddf97e1..0d063f47bc1 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -104,6 +104,8 @@ pub trait LayoutRPC {
fn content_boxes(&self) -> ContentBoxesResponse;
/// Requests the geometry of this node. Used by APIs such as `clientTop`.
fn node_geometry(&self) -> NodeGeometryResponse;
+ /// Requests the scroll geometry of this node. Used by APIs such as `scrollTop`.
+ fn node_scroll_area(&self) -> NodeGeometryResponse;
/// Requests the node containing the point of interest
fn hit_test(&self) -> HitTestResponse;
/// Query layout for the resolved value of a given CSS property
@@ -165,6 +167,7 @@ pub enum ReflowQueryType {
ContentBoxesQuery(TrustedNodeAddress),
HitTestQuery(Point2D<f32>, bool),
NodeGeometryQuery(TrustedNodeAddress),
+ NodeScrollGeometryQuery(TrustedNodeAddress),
ResolvedStyleQuery(TrustedNodeAddress, Option<PseudoElement>, Atom),
OffsetParentQuery(TrustedNodeAddress),
MarginStyleQuery(TrustedNodeAddress),