From 48706742d8ed1999ca94b54197c7f18ecd39ef19 Mon Sep 17 00:00:00 2001 From: Andi Gallo Date: Sun, 4 Jun 2023 14:18:57 +0000 Subject: [PATCH] LibWeb: Fix remove_irrelevant_boxes It's supposed to remove children of table-column-group which are *not* table-column, we were doing the opposite. --- Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp index 268a33f72d..d7615df4a2 100644 --- a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp +++ b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp @@ -382,7 +382,7 @@ void TreeBuilder::remove_irrelevant_boxes(NodeWithStyle& root) // Children of a table-column-group which are not a table-column. for_each_in_tree_with_internal_display(root, [&](Box& table_column_group) { table_column_group.for_each_child([&](auto& child) { - if (child.display().is_table_column()) + if (!child.display().is_table_column()) to_remove.append(child); }); });