summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Element.cpp
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-05-29 15:54:22 +0300
committerAndreas Kling <kling@serenityos.org>2023-05-29 21:36:17 +0200
commit578a937f94a3cccc86b5b16b0a855ab4e2f8d74c (patch)
tree20f8155d5c4a7afb1ec71798e7999181cf8238ff /Userland/Libraries/LibWeb/DOM/Element.cpp
parentaf004ff0ef162a1752db2a1be0b939da4c24f3b1 (diff)
downloadserenity-578a937f94a3cccc86b5b16b0a855ab4e2f8d74c.zip
LibWeb: Remove Layout::TableRowGroupBox
Special box types for inner table boxes might conflict with special types for <button>, <input> or <label>.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Element.cpp')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Element.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp
index 5dd627e7f9..f733fe462f 100644
--- a/Userland/Libraries/LibWeb/DOM/Element.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Element.cpp
@@ -51,7 +51,6 @@
#include <LibWeb/Layout/ListItemBox.h>
#include <LibWeb/Layout/TableCellBox.h>
#include <LibWeb/Layout/TableRowBox.h>
-#include <LibWeb/Layout/TableRowGroupBox.h>
#include <LibWeb/Layout/TreeBuilder.h>
#include <LibWeb/Layout/Viewport.h>
#include <LibWeb/Namespace.h>
@@ -324,7 +323,7 @@ JS::GCPtr<Layout::Node> Element::create_layout_node(NonnullRefPtr<CSS::StyleProp
JS::GCPtr<Layout::Node> Element::create_layout_node_for_display_type(DOM::Document& document, CSS::Display const& display, NonnullRefPtr<CSS::StyleProperties> style, Element* element)
{
- if (display.is_table_inside())
+ if (display.is_table_inside() || display.is_table_row_group() || display.is_table_header_group() || display.is_table_footer_group())
return document.heap().allocate_without_realm<Layout::Box>(document, element, move(style));
if (display.is_list_item())
@@ -336,9 +335,6 @@ JS::GCPtr<Layout::Node> Element::create_layout_node_for_display_type(DOM::Docume
if (display.is_table_cell())
return document.heap().allocate_without_realm<Layout::TableCellBox>(document, element, move(style));
- if (display.is_table_row_group() || display.is_table_header_group() || display.is_table_footer_group())
- return document.heap().allocate_without_realm<Layout::TableRowGroupBox>(document, element, move(style));
-
if (display.is_table_column() || display.is_table_column_group() || display.is_table_caption()) {
// FIXME: This is just an incorrect placeholder until we improve table layout support.
return document.heap().allocate_without_realm<Layout::BlockContainer>(document, element, move(style));