diff options
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index e927713f50..2ed71c4687 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -377,7 +377,8 @@ void BlockFormattingContext::layout_block_level_box(Box const& box, BlockContain OwnPtr<FormattingContext> independent_formatting_context; if (!box.is_replaced_box() && box.has_children()) { - if (auto independent_formatting_context = create_independent_formatting_context_if_needed(m_state, box)) { + independent_formatting_context = create_independent_formatting_context_if_needed(m_state, box); + if (independent_formatting_context) { independent_formatting_context->run(box, layout_mode, box_state.available_inner_space_or_constraints_from(available_space)); } else { if (box.children_are_inline()) |