mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:27:45 +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:
parent
23af2cfbc5
commit
48706742d8
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ void TreeBuilder::remove_irrelevant_boxes(NodeWithStyle& root)
|
||||||
// Children of a table-column-group which are not a table-column.
|
// 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) {
|
for_each_in_tree_with_internal_display<CSS::Display::Internal::TableColumnGroup>(root, [&](Box& table_column_group) {
|
||||||
table_column_group.for_each_child([&](auto& child) {
|
table_column_group.for_each_child([&](auto& child) {
|
||||||
if (child.display().is_table_column())
|
if (!child.display().is_table_column())
|
||||||
to_remove.append(child);
|
to_remove.append(child);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue