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, 6 insertions, 8 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs
index f892929932b..43eaacf9384 100644
--- a/components/layout/table_caption.rs
+++ b/components/layout/table_caption.rs
@@ -7,9 +7,10 @@
#![deny(unsafe_blocks)]
use block::BlockFlow;
+use construct::FlowConstructor;
use context::LayoutContext;
use flow::{FlowClass, Flow};
-use fragment::{Fragment, FragmentBorderBoxIterator, FragmentMutator};
+use fragment::FragmentBorderBoxIterator;
use wrapper::ThreadSafeLayoutNode;
use geom::{Point2D, Rect};
@@ -25,10 +26,11 @@ pub struct TableCaptionFlow {
}
impl TableCaptionFlow {
- pub fn from_node_and_fragment(node: &ThreadSafeLayoutNode, fragment: Fragment)
- -> TableCaptionFlow {
+ pub fn from_node(constructor: &mut FlowConstructor,
+ node: &ThreadSafeLayoutNode)
+ -> TableCaptionFlow {
TableCaptionFlow {
- block_flow: BlockFlow::from_node_and_fragment(node, fragment)
+ block_flow: BlockFlow::from_node(constructor, node)
}
}
}
@@ -94,10 +96,6 @@ 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 {