From 821793351e3a593f1affed0c57c00fb2443b5af7 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 21 Oct 2014 21:05:44 -0700 Subject: layout: Largely move display list building out to a separate file. `layout::fragment` and `layout::block` were getting too big. --- components/layout/table_caption.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'components/layout/table_caption.rs') diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 7a46fddb833..96e50747dc9 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -28,11 +28,6 @@ impl TableCaptionFlow { block_flow: BlockFlow::from_node(constructor, node) } } - - pub fn build_display_list_table_caption(&mut self, layout_context: &LayoutContext) { - debug!("build_display_list_table_caption: same process as block flow"); - self.block_flow.build_display_list_block(layout_context) - } } impl Flow for TableCaptionFlow { @@ -73,6 +68,11 @@ impl Flow for TableCaptionFlow { fn update_late_computed_block_position_if_necessary(&mut self, block_position: Au) { self.block_flow.update_late_computed_block_position_if_necessary(block_position) } + + fn build_display_list(&mut self, layout_context: &LayoutContext) { + debug!("build_display_list_table_caption: same process as block flow"); + self.block_flow.build_display_list(layout_context) + } } impl fmt::Show for TableCaptionFlow { -- cgit v1.2.3