mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make IndependentFormattingContext an enum
This commit is contained in:
parent
07d8c28d4a
commit
db80b8e3c1
6 changed files with 183 additions and 163 deletions
|
@ -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,
|
||||
)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue