This commit is contained in:
Naveen Gattu 2021-11-30 18:13:39 -08:00
parent 00a7c172e2
commit 0e3b52af27

View file

@ -152,9 +152,10 @@ impl BlockContainer {
.iter() .iter()
.map(|box_| { .map(|box_| {
box_.borrow_mut() box_.borrow_mut()
.inline_content_sizes(layout_context, writing_mode) .inline_content_sizes(layout_context, writing_mode)
}) })
.reduce(ContentSizes::max).unwrap_or_else(ContentSizes::zero), .reduce(ContentSizes::max)
.unwrap_or_else(ContentSizes::zero),
Self::InlineFormattingContext(context) => { Self::InlineFormattingContext(context) => {
context.inline_content_sizes(layout_context, writing_mode) context.inline_content_sizes(layout_context, writing_mode)
}, },