diff options
author | Anthony Ramine <nox@nox.paris> | 2020-06-15 14:40:01 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-06-15 18:09:15 +0200 |
commit | db80b8e3c15006c54ba2d2a9c919ca7f87ba2b35 (patch) | |
tree | 72be965c9b73ef87f74811c0ed75abcbc7f7bb4e /components/layout_2020/flow/construct.rs | |
parent | 07d8c28d4aa8c2834bba0759321ae1363ba43d54 (diff) | |
download | servo-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.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 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, ) }, |