aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2016-11-21 09:48:33 +0100
committerMartin Robinson <mrobinson@igalia.com>2016-11-29 22:12:16 +0100
commit0b56bb2237e1ae7d2ad9f3490f7da89a7999c06a (patch)
treec924c27d1239bfa531d14ec2bcb7879e1b0aac15 /components/script_traits/script_msg.rs
parent39845faf261672b795af59602b45e7ce096b9f33 (diff)
downloadservo-0b56bb2237e1ae7d2ad9f3490f7da89a7999c06a.tar.gz
servo-0b56bb2237e1ae7d2ad9f3490f7da89a7999c06a.zip
Reimplement scrolling to fragments
This reimplemntation of the feature uses ScrollRootIds to scroll particular scrollable areas of the page. Fixes #13736. Fixes #10753.
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index d4a9fc7442b..437816b5b50 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -14,6 +14,7 @@ use canvas_traits::CanvasMsg;
use devtools_traits::{ScriptToDevtoolsControlMsg, WorkerId};
use euclid::point::Point2D;
use euclid::size::Size2D;
+use gfx_traits::ScrollRootId;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::{FrameId, PipelineId, TraversalDirection};
use msg::constellation_msg::{Key, KeyModifiers, KeyState};
@@ -117,7 +118,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, Point2D<f32>, bool),
+ ScrollFragmentPoint(PipelineId, ScrollRootId, Point2D<f32>, bool),
/// Set title of current page
/// https://html.spec.whatwg.org/multipage/#document.title
SetTitle(PipelineId, Option<String>),