1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

LibWeb: Don't assert when trying to rebuild a single-node layout tree

This merely postpones dealing with partial layout tree rebuilds for a
while longer.
This commit is contained in:
Andreas Kling 2020-05-04 22:34:14 +02:00
parent 6886c6efa6
commit d3de2b7de5

View file

@ -84,7 +84,7 @@ static RefPtr<LayoutNode> create_layout_tree(Node& node, const StyleProperties*
RefPtr<LayoutNode> LayoutTreeBuilder::build(Node& node)
{
// FIXME: Support building partial trees.
ASSERT(is<Document>(node));
ASSERT(is<Document>(node) || !node.has_children());
return create_layout_tree(node, nullptr);
}