aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.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_traits/script_msg.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_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index 3e61fa8ae62..47a7b103c8c 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -16,7 +16,6 @@ use canvas_traits::CanvasMsg;
use devtools_traits::{ScriptToDevtoolsControlMsg, WorkerId};
use euclid::point::Point2D;
use euclid::size::{Size2D, TypedSize2D};
-use gfx_traits::ScrollRootId;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::{FrameId, FrameType, PipelineId, TraversalDirection};
use msg::constellation_msg::{Key, KeyModifiers, KeyState};
@@ -28,6 +27,7 @@ use servo_url::ServoUrl;
use style_traits::CSSPixel;
use style_traits::cursor::Cursor;
use style_traits::viewport::ViewportConstraints;
+use webrender_traits::ClipId;
/// Messages from the layout to the constellation.
#[derive(Deserialize, Serialize)]
@@ -133,7 +133,7 @@ pub enum ScriptMsg {
/// Check if an alert dialog box should be presented
Alert(PipelineId, String, IpcSender<bool>),
/// Scroll a page in a window
- ScrollFragmentPoint(PipelineId, ScrollRootId, Point2D<f32>, bool),
+ ScrollFragmentPoint(ClipId, Point2D<f32>, bool),
/// Set title of current page
/// https://html.spec.whatwg.org/multipage/#document.title
SetTitle(PipelineId, Option<String>),