diff options
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 3e5a7448c1e..797f7cf0703 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -1282,8 +1282,8 @@ impl<'a> FlowConstructor<'a> { fn build_flow_for_flex(&mut self, node: &ThreadSafeLayoutNode, float_kind: Option<FloatKind>) -> ConstructionResult { let fragment = self.build_fragment_for_block(node); - let flow = Box::new(FlexFlow::from_fragment(fragment, float_kind)); - self.build_flow_for_block_like(FlowRef::new(flow), node) + let flow = Arc::new(FlexFlow::from_fragment(fragment, float_kind)); + self.build_flow_for_block_like(flow, node) } /// Attempts to perform incremental repair to account for recent changes to this node. This |