summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-07 11:47:33 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-07 11:47:33 +0100
commit0eac44af49c197889dcdfaa2f4dca11f3c6ad139 (patch)
tree662da268ef9c0ad7d6b9e122713dcd77bed3c8ac
parent796c31a52b2884f3b6621f315c0eb9de9605c1d0 (diff)
downloadserenity-0eac44af49c197889dcdfaa2f4dca11f3c6ad139.zip
LibWeb: Don't assert on <colgroup> & friends
Let's just construct a placeholder BlockBox layout node for now. Fixes #5081.
-rw-r--r--Userland/Libraries/LibWeb/DOM/Element.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp
index aad4b7dea5..8381a88585 100644
--- a/Userland/Libraries/LibWeb/DOM/Element.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Element.cpp
@@ -152,7 +152,8 @@ RefPtr<Layout::Node> Element::create_layout_node()
case CSS::Display::TableColumn:
case CSS::Display::TableColumnGroup:
case CSS::Display::TableCaption:
- break;
+ // FIXME: This is just an incorrect placeholder until we improve table layout support.
+ return adopt(*new Layout::BlockBox(document(), this, move(style)));
}
ASSERT_NOT_REACHED();
}