aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_caption.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/table_caption.rs')
-rw-r--r--components/layout/table_caption.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs
index 43eaacf9384..f892929932b 100644
--- a/components/layout/table_caption.rs
+++ b/components/layout/table_caption.rs
@@ -7,10 +7,9 @@
#![deny(unsafe_blocks)]
use block::BlockFlow;
-use construct::FlowConstructor;
use context::LayoutContext;
use flow::{FlowClass, Flow};
-use fragment::FragmentBorderBoxIterator;
+use fragment::{Fragment, FragmentBorderBoxIterator, FragmentMutator};
use wrapper::ThreadSafeLayoutNode;
use geom::{Point2D, Rect};
@@ -26,11 +25,10 @@ pub struct TableCaptionFlow {
}
impl TableCaptionFlow {
- pub fn from_node(constructor: &mut FlowConstructor,
- node: &ThreadSafeLayoutNode)
- -> TableCaptionFlow {
+ pub fn from_node_and_fragment(node: &ThreadSafeLayoutNode, fragment: Fragment)
+ -> TableCaptionFlow {
TableCaptionFlow {
- block_flow: BlockFlow::from_node(constructor, node)
+ block_flow: BlockFlow::from_node_and_fragment(node, fragment)
}
}
}
@@ -96,6 +94,10 @@ impl Flow for TableCaptionFlow {
stacking_context_position: &Point2D<Au>) {
self.block_flow.iterate_through_fragment_border_boxes(iterator, stacking_context_position)
}
+
+ fn mutate_fragments(&mut self, mutator: &mut FragmentMutator) {
+ self.block_flow.mutate_fragments(mutator)
+ }
}
impl fmt::Debug for TableCaptionFlow {