diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2015-05-13 17:13:59 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2015-05-19 16:53:51 -0700 |
commit | 6a197719b30a5731b168b4ca5b6351f3d487d651 (patch) | |
tree | 96e5d1f6f3be89512dabbe055e03cf2409b116a7 /components/layout/table_caption.rs | |
parent | acb9824229bf9e02eaabdb9d924f7db242a1ac85 (diff) | |
download | servo-6a197719b30a5731b168b4ca5b6351f3d487d651.tar.gz servo-6a197719b30a5731b168b4ca5b6351f3d487d651.zip |
compositing: Implement display ports and avoid creating display lists
for items outside it.
This improves Servo's performance on large pages.
Diffstat (limited to 'components/layout/table_caption.rs')
-rw-r--r-- | components/layout/table_caption.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 628b90c41c5..ab98e9b3261 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -59,13 +59,13 @@ impl Flow for TableCaptionFlow { self.block_flow.assign_inline_sizes(ctx); } - fn assign_block_size<'a>(&mut self, ctx: &'a LayoutContext<'a>) { + fn assign_block_size<'a>(&mut self, layout_context: &'a LayoutContext<'a>) { debug!("assign_block_size: assigning block_size for table_caption"); - self.block_flow.assign_block_size(ctx); + self.block_flow.assign_block_size(layout_context); } - fn compute_absolute_position(&mut self) { - self.block_flow.compute_absolute_position() + fn compute_absolute_position(&mut self, layout_context: &LayoutContext) { + self.block_flow.compute_absolute_position(layout_context) } fn update_late_computed_inline_position_if_necessary(&mut self, inline_position: Au) { |