aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-11-12 17:36:32 -0700
committerbors-servo <metajack+bors@gmail.com>2014-11-12 17:36:32 -0700
commit26045d7fcbab8851fbefe2851cd904203f8fd8dd (patch)
treeb2d7cf6732758f68df2355aff9ead4d924483002 /components/script/layout_interface.rs
parent668d9217d8b8d999547fd1e8b690da8c8d80ddda (diff)
parentc7327450ef1328a6045cfb8a47321e78976ca7a8 (diff)
downloadservo-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/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 2cf64f961fb..95b422e18eb 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -109,6 +109,8 @@ pub struct Reflow {
pub id: uint,
/// The type of query if any to perform during this reflow.
pub query_type: ReflowQueryType,
+ /// A clipping rectangle for the page, an enlarged rectangle containing the viewport.
+ pub page_clip_rect: Rect<Au>,
}
/// Encapsulates a channel to the layout task.