diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-10-24 17:25:56 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-10-26 14:04:08 -0700 |
commit | be252371eae45409bf89b9562e37c74eb8c05f42 (patch) | |
tree | 4b4ad024ffaf31ef14fccafdbd87510c20668a2f /components/layout/construct.rs | |
parent | e888b7653479022bf5aecc518a73f1cf627e318a (diff) | |
download | servo-be252371eae45409bf89b9562e37c74eb8c05f42.tar.gz servo-be252371eae45409bf89b9562e37c74eb8c05f42.zip |
layout: Refactor `Flow::from_fragment`-style constructors to be
consistent.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index f9b2d61ab91..70e2d2c8130 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -768,8 +768,9 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> return self.build_flow_for_multicol(node, float_kind) } - let flow: FlowRef = Arc::new( - BlockFlow::from_fragment(self.build_fragment_for_block(node), float_kind)); + let fragment = self.build_fragment_for_block(node); + let flow: FlowRef = + Arc::new(BlockFlow::from_fragment_and_float_kind(fragment, float_kind)); self.build_flow_for_block_like(flow, node) } @@ -1165,7 +1166,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> -> ConstructionResult { let fragment = Fragment::new(node, SpecificFragmentInfo::TableWrapper, self.layout_context); let mut wrapper_flow: FlowRef = Arc::new( - TableWrapperFlow::from_fragment(fragment, FloatKind::from_property(float_value))); + TableWrapperFlow::from_fragment_and_float_kind(fragment, FloatKind::from_property(float_value))); let table_fragment = Fragment::new(node, SpecificFragmentInfo::Table, self.layout_context); let table_flow = Arc::new(TableFlow::from_fragment(table_fragment)); |