diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-11-12 17:36:32 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-11-12 17:36:32 -0700 |
commit | 26045d7fcbab8851fbefe2851cd904203f8fd8dd (patch) | |
tree | b2d7cf6732758f68df2355aff9ead4d924483002 /components/script_traits/lib.rs | |
parent | 668d9217d8b8d999547fd1e8b690da8c8d80ddda (diff) | |
parent | c7327450ef1328a6045cfb8a47321e78976ca7a8 (diff) | |
download | servo-26045d7fcbab8851fbefe2851cd904203f8fd8dd.tar.gz servo-26045d7fcbab8851fbefe2851cd904203f8fd8dd.zip |
auto merge of #3809 : mrobinson/servo/display-list-optimization, r=pcwalton
Instead of creating a display list for the entire page, only create one
for an area that expands around the viewport. On my machine this makes
incremental layout of http://timecube.com 50% faster.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 2 |
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 |