diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp index 4f77355e14..3f8838bbc4 100644 --- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp @@ -171,12 +171,11 @@ void FlexFormattingContext::generate_anonymous_flex_items() } flex_container().for_each_child_of_type([&](Box& child_box) { - (void)layout_inside(child_box, LayoutMode::Default); // Skip anonymous text runs that are only whitespace. if (child_box.is_anonymous() && !child_box.first_child_of_type()) { bool contains_only_white_space = true; child_box.for_each_in_inclusive_subtree_of_type([&contains_only_white_space](auto& text_node) { - if (!text_node.text_for_rendering().is_whitespace()) { + if (!text_node.dom_node().data().is_whitespace()) { contains_only_white_space = false; return IterationDecision::Break; }