From 0eac44af49c197889dcdfaa2f4dca11f3c6ad139 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 7 Feb 2021 11:47:33 +0100 Subject: LibWeb: Don't assert on & friends Let's just construct a placeholder BlockBox layout node for now. Fixes #5081. --- Userland/Libraries/LibWeb/DOM/Element.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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(); } -- cgit v1.2.3