aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/compositor_task.rs
diff options
context:
space:
mode:
authorJames Gilbertson <james.gilbertson@luniv.ca>2015-03-24 23:46:47 -0600
committerJames Gilbertson <james.gilbertson@luniv.ca>2015-05-06 00:34:33 -0600
commit138596e86136fdea14459c2c440e55593b67b626 (patch)
tree3be54ee8f5be8d17d6cfdfb1258c290f336f0b8a /components/compositing/compositor_task.rs
parent8977316d3ef99aab41873b0e30aa7d76b7bcd3d5 (diff)
downloadservo-138596e86136fdea14459c2c440e55593b67b626.tar.gz
servo-138596e86136fdea14459c2c440e55593b67b626.zip
Constrain the viewport & zoom when reflowing
Diffstat (limited to 'components/compositing/compositor_task.rs')
-rw-r--r--components/compositing/compositor_task.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/compositing/compositor_task.rs b/components/compositing/compositor_task.rs
index acafbbc8f9b..8c68009b678 100644
--- a/components/compositing/compositor_task.rs
+++ b/components/compositing/compositor_task.rs
@@ -26,6 +26,7 @@ use profile_traits::time;
use std::sync::mpsc::{channel, Sender, Receiver};
use std::fmt::{Error, Formatter, Debug};
use std::rc::Rc;
+use style::viewport::ViewportConstraints;
use url::Url;
use util::cursor::Cursor;
@@ -219,6 +220,8 @@ pub enum Msg {
SetCursor(Cursor),
/// Informs the compositor that the paint task for the given pipeline has exited.
PaintTaskExited(PipelineId),
+ /// Alerts the compositor that the viewport has been constrained in some manner
+ ViewportConstrained(PipelineId, ViewportConstraints),
}
impl Debug for Msg {
@@ -245,6 +248,7 @@ impl Debug for Msg {
Msg::KeyEvent(..) => write!(f, "KeyEvent"),
Msg::SetCursor(..) => write!(f, "SetCursor"),
Msg::PaintTaskExited(..) => write!(f, "PaintTaskExited"),
+ Msg::ViewportConstrained(..) => write!(f, "ViewportConstrained"),
}
}
}
@@ -303,4 +307,3 @@ pub trait CompositorEventListener {
/// Requests that the compositor send the title for the main frame as soon as possible.
fn get_title_for_main_frame(&self);
}
-