aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/construct.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-06-15 14:40:01 +0200
committerAnthony Ramine <nox@nox.paris>2020-06-15 18:09:15 +0200
commitdb80b8e3c15006c54ba2d2a9c919ca7f87ba2b35 (patch)
tree72be965c9b73ef87f74811c0ed75abcbc7f7bb4e /components/layout_2020/flow/construct.rs
parent07d8c28d4aa8c2834bba0759321ae1363ba43d54 (diff)
downloadservo-db80b8e3c15006c54ba2d2a9c919ca7f87ba2b35.tar.gz
servo-db80b8e3c15006c54ba2d2a9c919ca7f87ba2b35.zip
Make IndependentFormattingContext an enum
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r--components/layout_2020/flow/construct.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs
index 666a39d2932..7d72209c6e8 100644
--- a/components/layout_2020/flow/construct.rs
+++ b/components/layout_2020/flow/construct.rs
@@ -723,7 +723,7 @@ where
max_assign_in_flow_outer_content_sizes_to.is_some() &&
!info.style.inline_size_is_length(),
);
- let contents = IndependentFormattingContext::construct(
+ let context = IndependentFormattingContext::construct(
context,
info,
display_inside,
@@ -733,13 +733,13 @@ where
);
if let Some(to) = max_assign_in_flow_outer_content_sizes_to {
to.max_assign(&sizing::outer_inline(
- &contents.style,
+ &context.style(),
not_actually_containing_block_writing_mode,
- || contents.content_sizes.expect_inline().clone(),
+ || context.content_sizes(),
))
}
(
- ArcRefCell::new(BlockLevelBox::Independent(contents)),
+ ArcRefCell::new(BlockLevelBox::Independent(context)),
ContainsFloats::No,
)
},