mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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: 48706742d8
Pull-request: https://github.com/SerenityOS/serenity/pull/19256
Reviewed-by: https://github.com/awesomekling
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.
|
||||
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…
Add table
Add a link
Reference in a new issue