mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
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.
This commit is contained in:
parent
f8235ab3fb
commit
66c4eee082
37 changed files with 3 additions and 77 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue