aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 0caf54ba341..51365f0515f 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -32,6 +32,7 @@ use servo_util::smallvec::SmallVec1;
use std::any::Any;
use geom::point::Point2D;
+use geom::rect::Rect;
use serialize::{Encodable, Encoder};
@@ -62,6 +63,7 @@ pub enum ConstellationControlMsg {
SendEventMsg(PipelineId, CompositorEvent),
/// Notifies script that reflow is finished.
ReflowCompleteMsg(PipelineId, uint),
+ ViewportMsg(PipelineId, Rect<f32>),
}
/// Events from the compositor that the script task needs to know about