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.
This commit is contained in:
Andi Gallo 2023-06-04 14:18:57 +00:00 committed by Andreas Kling
parent 23af2cfbc5
commit 48706742d8
Notes: sideshowbarker 2024-07-17 05:18:58 +09:00

View File

@ -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<CSS::Display::Internal::TableColumnGroup>(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);
});
});