diff options
Diffstat (limited to 'Libraries/LibWeb/Layout')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp b/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp index 5474f95ddd..12beeb796c 100644 --- a/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp +++ b/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp @@ -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); } |