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

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

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);
});
});