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:
parent
6886c6efa6
commit
d3de2b7de5
Notes:
sideshowbarker
2024-07-19 06:59:19 +09:00
Author: https://github.com/awesomekling
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)
|
||||
{
|
||||
// FIXME: Support building partial trees.
|
||||
ASSERT(is<Document>(node));
|
||||
ASSERT(is<Document>(node) || !node.has_children());
|
||||
return create_layout_tree(node, nullptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue