mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 16:17:34 +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:
parent
6886c6efa6
commit
d3de2b7de5
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ static RefPtr<LayoutNode> create_layout_tree(Node& node, const StyleProperties*
|
||||||
RefPtr<LayoutNode> LayoutTreeBuilder::build(Node& node)
|
RefPtr<LayoutNode> LayoutTreeBuilder::build(Node& node)
|
||||||
{
|
{
|
||||||
// FIXME: Support building partial trees.
|
// FIXME: Support building partial trees.
|
||||||
ASSERT(is<Document>(node));
|
ASSERT(is<Document>(node) || !node.has_children());
|
||||||
return create_layout_tree(node, nullptr);
|
return create_layout_tree(node, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue