aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-06-14 21:48:55 +0200
committerOriol Brufau <obrufau@igalia.com>2023-06-16 15:46:35 +0200
commit66c4eee0821ebaf0fdce92b19a80cc3b80bb4fd0 (patch)
tree8250bdbe715b6f1770d87f1645553e08757dc54c /components
parentf8235ab3fb29695cd3803532657f34f4323b9572 (diff)
downloadservo-66c4eee0821ebaf0fdce92b19a80cc3b80bb4fd0.tar.gz
servo-66c4eee0821ebaf0fdce92b19a80cc3b80bb4fd0.zip
Implement BlockLevelBox::inline_content_sizes for floats
This improves #29874, but BlockContainer::inline_content_sizes will still need more changes in order to correctly handle sequences of floats.
Diffstat (limited to 'components')
-rw-r--r--components/layout_2020/flow/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/layout_2020/flow/mod.rs b/components/layout_2020/flow/mod.rs
index e23c8db33e8..a7e3bc46708 100644
--- a/components/layout_2020/flow/mod.rs
+++ b/components/layout_2020/flow/mod.rs
@@ -388,10 +388,9 @@ impl BlockLevelBox {
Self::Independent(independent) => independent
.outer_inline_content_sizes(layout_context, containing_block_writing_mode),
BlockLevelBox::OutOfFlowAbsolutelyPositionedBox(_) => ContentSizes::zero(),
- BlockLevelBox::OutOfFlowFloatBox(_box_) => {
- // TODO: Actually implement that.
- ContentSizes::zero()
- },
+ BlockLevelBox::OutOfFlowFloatBox(float_box) => float_box
+ .contents
+ .outer_inline_content_sizes(layout_context, containing_block_writing_mode),
}
}
}