1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:15:08 +00:00

LibHTML: Add stub classes for basic table layout

This class introduces LayoutTable, LayoutTableRow and LayoutTableCell.
These are produced by "display" values table, table-row and table-cell
respectively.

Note that there's no layout happening yet, I'm just adding the classes.
This commit is contained in:
Andreas Kling 2019-10-17 23:09:41 +02:00
parent 14f380f87a
commit 41896ff521
9 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#include <LibHTML/DOM/Element.h>
#include <LibHTML/Layout/LayoutTable.h>
LayoutTable::LayoutTable(const Element& element, NonnullRefPtr<StyleProperties> style)
: LayoutBlock(&element, move(style))
{
}
LayoutTable::~LayoutTable()
{
}
void LayoutTable::layout()
{
LayoutBlock::layout();
}