mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibWeb: Allow BFC auto height calculation on any Layout::Box
This algorithm is reused in abspos sizing, and so should not be specific to block containers (even if the name suggests it.)
This commit is contained in:
parent
a1d37420d5
commit
d5480a44e5
3 changed files with 6 additions and 6 deletions
|
@ -387,7 +387,7 @@ static bool margins_collapse_through(Box const& box, LayoutState& state)
|
|||
CSSPixels BlockFormattingContext::compute_auto_height_for_block_level_element(Box const& box, AvailableSpace const& available_space)
|
||||
{
|
||||
if (creates_block_formatting_context(box)) {
|
||||
return compute_auto_height_for_block_formatting_context_root(verify_cast<BlockContainer>(box));
|
||||
return compute_auto_height_for_block_formatting_context_root(box);
|
||||
}
|
||||
|
||||
auto const& box_state = m_state.get(box);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue