summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp b/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp
index d266a4f61e..1ed4397c2f 100644
--- a/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp
+++ b/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp
@@ -79,8 +79,10 @@ 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) || !node.has_children());
+ if (!is<Document>(node) && node.has_children()) {
+ dbg() << "FIXME: Support building partial layout trees.";
+ return nullptr;
+ }
return create_layout_tree(node, nullptr);
}