aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/rpc.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2017-04-19 14:45:47 +0200
committerMartin Robinson <mrobinson@igalia.com>2017-04-20 08:51:38 +0200
commitd150cc9f95c45f80a96678a3ed1c8e076f005382 (patch)
treed3f7dded41ee67b2cc86948207bcc7c74dc3f4cf /components/script_layout_interface/rpc.rs
parent7919e591a46274c0d7f3a7c7c99d2643d55d60f1 (diff)
downloadservo-d150cc9f95c45f80a96678a3ed1c8e076f005382.tar.gz
servo-d150cc9f95c45f80a96678a3ed1c8e076f005382.zip
Eliminate ScrollRootId
Just use WebRender's ClipId directly. This will allow us to create and use ReferenceFrames in the future, if we need to do that. It will also make it easier to have Servo responsible for creating the root scrolling area, which will allow removing some old hacks in the future.
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r--components/script_layout_interface/rpc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs
index b07fa25a8c1..82dd9b9ff08 100644
--- a/components/script_layout_interface/rpc.rs
+++ b/components/script_layout_interface/rpc.rs
@@ -6,9 +6,9 @@ use PendingImage;
use app_units::Au;
use euclid::point::Point2D;
use euclid::rect::Rect;
-use gfx_traits::ScrollRootId;
use script_traits::UntrustedNodeAddress;
use style::properties::longhands::{margin_top, margin_right, margin_bottom, margin_left, overflow_x};
+use webrender_traits::ClipId;
/// Synchronous messages that script can send to layout.
///
@@ -56,7 +56,7 @@ pub struct NodeGeometryResponse {
pub struct NodeOverflowResponse(pub Option<Point2D<overflow_x::computed_value::T>>);
-pub struct NodeScrollRootIdResponse(pub ScrollRootId);
+pub struct NodeScrollRootIdResponse(pub ClipId);
pub struct HitTestResponse {
pub node_address: Option<UntrustedNodeAddress>,