aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-05-19 19:40:36 -0500
committerbors-servo <metajack+bors@gmail.com>2015-05-19 19:40:36 -0500
commit0880e54f987bac7c34c934ef6ee36f46475b06e3 (patch)
treeaf54e26e6b9f54106ea2eed94c365456147babee /components/script
parentba340ec71bcfca8ab7b8ae04a22005e4fb860a23 (diff)
parent6a197719b30a5731b168b4ca5b6351f3d487d651 (diff)
downloadservo-0880e54f987bac7c34c934ef6ee36f46475b06e3.tar.gz
servo-0880e54f987bac7c34c934ef6ee36f46475b06e3.zip
Auto merge of #6053 - pcwalton:displayports, r=glennw
This improves Servo's performance on large pages. Please double-check the logic when it comes to nested layers—I'm sure I've messed up some of the geometry calculations :) r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6053) <!-- Reviewable:end -->
Diffstat (limited to 'components/script')
-rw-r--r--components/script/layout_interface.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index ad474a0daed..2ebb00d5cf8 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -11,6 +11,7 @@ use dom::node::LayoutData;
use geom::point::Point2D;
use geom::rect::Rect;
use libc::uintptr_t;
+use msg::compositor_msg::LayerId;
use msg::constellation_msg::{PipelineExitType, WindowSizeData};
use msg::compositor_msg::Epoch;
use net_traits::PendingAsyncLoad;
@@ -47,6 +48,10 @@ pub enum Msg {
/// Requests that the layout task render the next frame of all animations.
TickAnimations,
+ /// Updates the layout visible rects, affecting the area that display lists will be constructed
+ /// for.
+ SetVisibleRects(Vec<(LayerId, Rect<Au>)>),
+
/// Destroys layout data associated with a DOM node.
///
/// TODO(pcwalton): Maybe think about batching to avoid message traffic.