diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-04 22:34:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-04 22:34:14 +0200 |
commit | d3de2b7de55d3350624a016e8667c332f59d3b0d (patch) | |
tree | 856188fbcdbe1ef0868d769fd940b2cd4b38b354 /Libraries/LibWeb/Layout | |
parent | 6886c6efa60a2aeb431032b00bc8c358e2a61b6a (diff) | |
download | serenity-d3de2b7de55d3350624a016e8667c332f59d3b0d.zip |
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.
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); } |