mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03: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
Notes:
sideshowbarker
2024-07-17 05:18:58 +09:00
Author: https://github.com/axgallo Commit: https://github.com/SerenityOS/serenity/commit/48706742d8 Pull-request: https://github.com/SerenityOS/serenity/pull/19256 Reviewed-by: https://github.com/awesomekling
@ -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);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user