1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09: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
Notes: sideshowbarker 2024-07-19 06:59:19 +09:00

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);
}