aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorNikhil Shagrithaya <nikhilshagri@gmail.com>2017-01-14 22:00:07 +0530
committerNikhil Shagrithaya <nikhilshagri@gmail.com>2017-01-23 19:12:16 +0530
commitbca565a1a3c7f09724736e844560dbc121248612 (patch)
treea307554f38c1096fd30cbbd2fefd35f2130e070c /components/script_traits/script_msg.rs
parent04a3242dc54c670dcdafcf1f0ac5373f2ed612f3 (diff)
downloadservo-bca565a1a3c7f09724736e844560dbc121248612.tar.gz
servo-bca565a1a3c7f09724736e844560dbc121248612.zip
frame-resize refactor
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index fc29563cbbd..d35e23a7bb9 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -15,7 +15,7 @@ use WorkerScriptLoadOrigin;
use canvas_traits::CanvasMsg;
use devtools_traits::{ScriptToDevtoolsControlMsg, WorkerId};
use euclid::point::Point2D;
-use euclid::size::Size2D;
+use euclid::size::{Size2D, TypedSize2D};
use gfx_traits::ScrollRootId;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::{FrameId, PipelineId, TraversalDirection};
@@ -24,6 +24,7 @@ use net_traits::CoreResourceMsg;
use net_traits::storage_thread::StorageType;
use offscreen_gl_context::{GLContextAttributes, GLLimits};
use servo_url::ServoUrl;
+use style_traits::PagePx;
use style_traits::cursor::Cursor;
use style_traits::viewport::ViewportConstraints;
@@ -32,6 +33,8 @@ use style_traits::viewport::ViewportConstraints;
pub enum LayoutMsg {
/// Indicates whether this pipeline is currently running animations.
ChangeRunningAnimationsState(PipelineId, AnimationState),
+ /// Inform the constellation of the size of the pipeline's viewport.
+ FrameSizes(Vec<(PipelineId, TypedSize2D<f32, PagePx>)>),
/// Requests that the constellation inform the compositor of the a cursor change.
SetCursor(Cursor),
/// Notifies the constellation that the viewport has been constrained in some manner