mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
LibWeb: Propagate children_are_inline in wrap_in_anonymous
This fixes a crash in box_baseline, due to cells created for display: table expecting a box child and getting the inline node wrapper instead. Fixes #18972.
This commit is contained in:
parent
d1328639b4
commit
668578ddc0
3 changed files with 42 additions and 0 deletions
|
@ -526,6 +526,7 @@ static void wrap_in_anonymous(Vector<JS::Handle<Node>>& sequence, Node* nearest_
|
|||
parent.remove_child(*child);
|
||||
wrapper->append_child(*child);
|
||||
}
|
||||
wrapper->set_children_are_inline(parent.children_are_inline());
|
||||
if (nearest_sibling)
|
||||
parent.insert_before(*wrapper, *nearest_sibling);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue