mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibWeb: Allow anonymous table, table-row and table-cell layout nodes
This commit is contained in:
@@ -135,11 +135,11 @@ RefPtr<Layout::Node> Element::create_layout_node()
|
||||
if (display == CSS::Display::ListItem)
|
||||
return adopt(*new Layout::ListItemBox(document(), *this, move(style)));
|
||||
if (display == CSS::Display::Table)
|
||||
return adopt(*new Layout::TableBox(document(), *this, move(style)));
|
||||
return adopt(*new Layout::TableBox(document(), this, move(style)));
|
||||
if (display == CSS::Display::TableRow)
|
||||
return adopt(*new Layout::TableRowBox(document(), *this, move(style)));
|
||||
return adopt(*new Layout::TableRowBox(document(), this, move(style)));
|
||||
if (display == CSS::Display::TableCell)
|
||||
return adopt(*new Layout::TableCellBox(document(), *this, move(style)));
|
||||
return adopt(*new Layout::TableCellBox(document(), this, move(style)));
|
||||
if (display == CSS::Display::TableRowGroup || display == CSS::Display::TableHeaderGroup || display == CSS::Display::TableFooterGroup)
|
||||
return adopt(*new Layout::TableRowGroupBox(document(), *this, move(style)));
|
||||
if (display == CSS::Display::InlineBlock) {
|
||||
|
||||
Reference in New Issue
Block a user