mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
LibWeb: Null check nearest_sibling
in generate_missing_parents
Caught by AddressSanitizer.
This commit is contained in:
parent
f43f4feb1e
commit
83b0613c68
1 changed files with 5 additions and 1 deletions
|
@ -606,7 +606,11 @@ void TreeBuilder::generate_missing_parents(NodeWithStyle& root)
|
||||||
|
|
||||||
parent.remove_child(*table_box);
|
parent.remove_child(*table_box);
|
||||||
wrapper->append_child(*table_box);
|
wrapper->append_child(*table_box);
|
||||||
parent.insert_before(*wrapper, *nearest_sibling);
|
|
||||||
|
if (nearest_sibling)
|
||||||
|
parent.insert_before(*wrapper, *nearest_sibling);
|
||||||
|
else
|
||||||
|
parent.append_child(*wrapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue