1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

LibWeb: Don't choke on ICB with inline children

Let's relax our assumption about what kind of children the ICB has.
This is preparation for loading XHTML documents.
This commit is contained in:
Andreas Kling 2022-03-27 23:37:45 +02:00
parent 4575ab558b
commit 3ac9ea369d

View file

@ -541,7 +541,9 @@ void BlockFormattingContext::layout_initial_containing_block(LayoutMode layout_m
auto& icb = verify_cast<Layout::InitialContainingBlock>(root());
auto& icb_state = m_state.get_mutable(icb);
VERIFY(!icb.children_are_inline());
if (root().children_are_inline())
layout_inline_children(root(), layout_mode);
else
layout_block_level_children(root(), layout_mode);
// Compute scrollable overflow.