aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/inline.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-03-13 12:22:32 +0100
committerPatrick Walton <pcwalton@mimiga.net>2020-03-17 11:15:17 -0700
commitc3932185ec649c3063096ca0c545b62c3ddbfd5b (patch)
tree45d29b8a3c46d8473084e65ff00f769765273893 /components/layout_2020/flow/inline.rs
parent7ade924683c22f1f990c4b9fa09ef1b38dc6b027 (diff)
downloadservo-c3932185ec649c3063096ca0c545b62c3ddbfd5b.tar.gz
servo-c3932185ec649c3063096ca0c545b62c3ddbfd5b.zip
Make AbsolutelyPositionedBox be 'static
Diffstat (limited to 'components/layout_2020/flow/inline.rs')
-rw-r--r--components/layout_2020/flow/inline.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/layout_2020/flow/inline.rs b/components/layout_2020/flow/inline.rs
index bd8f5bc784f..8e1587568c0 100644
--- a/components/layout_2020/flow/inline.rs
+++ b/components/layout_2020/flow/inline.rs
@@ -34,7 +34,7 @@ pub(crate) struct InlineFormattingContext {
pub(crate) enum InlineLevelBox {
InlineBox(InlineBox),
TextRun(TextRun),
- OutOfFlowAbsolutelyPositionedBox(AbsolutelyPositionedBox),
+ OutOfFlowAbsolutelyPositionedBox(Arc<AbsolutelyPositionedBox>),
OutOfFlowFloatBox(FloatBox),
Atomic(IndependentFormattingContext),
}
@@ -77,7 +77,7 @@ struct PartialInlineBoxFragment<'box_tree> {
}
struct InlineFormattingContextState<'box_tree, 'a, 'b> {
- positioning_context: &'a mut PositioningContext<'box_tree>,
+ positioning_context: &'a mut PositioningContext,
containing_block: &'b ContainingBlock<'b>,
lines: Lines,
inline_position: Length,
@@ -204,10 +204,10 @@ impl InlineFormattingContext {
computation.paragraph
}
- pub(super) fn layout<'a>(
- &'a self,
+ pub(super) fn layout(
+ &self,
layout_context: &LayoutContext,
- positioning_context: &mut PositioningContext<'a>,
+ positioning_context: &mut PositioningContext,
containing_block: &ContainingBlock,
tree_rank: usize,
) -> FlowLayout {