1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:28:13 +00:00

LibWeb: Add LayoutTableRowGroup to implement display: table-row-group

This commit is contained in:
Andreas Kling 2020-06-09 21:08:15 +02:00
parent b4d4d6b32a
commit 28dcef4757
6 changed files with 119 additions and 4 deletions

View file

@ -39,6 +39,7 @@
#include <LibWeb/Layout/LayoutTable.h>
#include <LibWeb/Layout/LayoutTableCell.h>
#include <LibWeb/Layout/LayoutTableRow.h>
#include <LibWeb/Layout/LayoutTableRowGroup.h>
#include <LibWeb/Layout/LayoutTreeBuilder.h>
#include <LibWeb/Parser/HTMLParser.h>
@ -130,6 +131,8 @@ RefPtr<LayoutNode> Element::create_layout_node(const StyleProperties* parent_sty
return adopt(*new LayoutTableRow(*this, move(style)));
if (display == "table-cell")
return adopt(*new LayoutTableCell(*this, move(style)));
if (display == "table-row-group")
return adopt(*new LayoutTableRowGroup(*this, move(style)));
if (display == "inline-block") {
auto inline_block = adopt(*new LayoutBlock(this, move(style)));
inline_block->set_inline(true);