diff options
author | Anthony Ramine <nox@nox.paris> | 2020-03-13 12:22:32 +0100 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2020-03-17 11:15:17 -0700 |
commit | c3932185ec649c3063096ca0c545b62c3ddbfd5b (patch) | |
tree | 45d29b8a3c46d8473084e65ff00f769765273893 /components/layout_2020/flow/construct.rs | |
parent | 7ade924683c22f1f990c4b9fa09ef1b38dc6b027 (diff) | |
download | servo-c3932185ec649c3063096ca0c545b62c3ddbfd5b.tar.gz servo-c3932185ec649c3063096ca0c545b62c3ddbfd5b.zip |
Make AbsolutelyPositionedBox be 'static
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r-- | components/layout_2020/flow/construct.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs index cff3fa281a6..6eee3675a8e 100644 --- a/components/layout_2020/flow/construct.rs +++ b/components/layout_2020/flow/construct.rs @@ -525,7 +525,7 @@ where kind, }); } else { - let box_ = Arc::new(InlineLevelBox::OutOfFlowAbsolutelyPositionedBox( + let box_ = Arc::new(InlineLevelBox::OutOfFlowAbsolutelyPositionedBox(Arc::new( AbsolutelyPositionedBox::construct( self.context, node, @@ -533,7 +533,7 @@ where display_inside, contents, ), - )); + ))); self.current_inline_level_boxes().push(box_.clone()); box_slot.set(LayoutBox::InlineLevel(box_)) } @@ -687,13 +687,13 @@ where contents, } => { let block_level_box = Arc::new(BlockLevelBox::OutOfFlowAbsolutelyPositionedBox( - AbsolutelyPositionedBox::construct( + Arc::new(AbsolutelyPositionedBox::construct( context, node, style, display_inside, contents, - ), + )), )); (block_level_box, ContainsFloats::No) }, |