diff options
Diffstat (limited to 'components/layout/table_caption.rs')
-rw-r--r-- | components/layout/table_caption.rs | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 63292cfbb55..51a6078ec31 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -58,7 +58,10 @@ impl Flow for TableCaptionFlow { } fn assign_inline_sizes(&mut self, layout_context: &LayoutContext) { - debug!("assign_inline_sizes({}): assigning inline_size for flow", "table_caption"); + debug!( + "assign_inline_sizes({}): assigning inline_size for flow", + "table_caption" + ); self.block_flow.assign_inline_sizes(layout_context); } @@ -68,15 +71,18 @@ impl Flow for TableCaptionFlow { } fn compute_stacking_relative_position(&mut self, layout_context: &LayoutContext) { - self.block_flow.compute_stacking_relative_position(layout_context) + self.block_flow + .compute_stacking_relative_position(layout_context) } fn update_late_computed_inline_position_if_necessary(&mut self, inline_position: Au) { - self.block_flow.update_late_computed_inline_position_if_necessary(inline_position) + self.block_flow + .update_late_computed_inline_position_if_necessary(inline_position) } 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) + self.block_flow + .update_late_computed_block_position_if_necessary(block_position) } fn build_display_list(&mut self, state: &mut DisplayListBuildState) { @@ -85,8 +91,8 @@ impl Flow for TableCaptionFlow { } fn collect_stacking_contexts(&mut self, state: &mut StackingContextCollectionState) { - self.block_flow.collect_stacking_contexts_for_block(state, - StackingContextCollectionFlags::empty()); + self.block_flow + .collect_stacking_contexts_for_block(state, StackingContextCollectionFlags::empty()); } fn repair_style(&mut self, new_style: &::ServoArc<ComputedValues>) { @@ -109,11 +115,17 @@ impl Flow for TableCaptionFlow { self.block_flow.generated_containing_block_size(flow) } - fn iterate_through_fragment_border_boxes(&self, - iterator: &mut FragmentBorderBoxIterator, - level: i32, - stacking_context_position: &Point2D<Au>) { - self.block_flow.iterate_through_fragment_border_boxes(iterator, level, stacking_context_position) + fn iterate_through_fragment_border_boxes( + &self, + iterator: &mut FragmentBorderBoxIterator, + level: i32, + stacking_context_position: &Point2D<Au>, + ) { + self.block_flow.iterate_through_fragment_border_boxes( + iterator, + level, + stacking_context_position, + ) } fn mutate_fragments(&mut self, mutator: &mut FnMut(&mut Fragment)) { |