2019-10-17 23:09:41 +02:00
|
|
|
#include <LibHTML/DOM/Element.h>
|
|
|
|
#include <LibHTML/Layout/LayoutTable.h>
|
2019-10-18 09:36:46 +02:00
|
|
|
#include <LibHTML/Layout/LayoutTableRow.h>
|
2019-10-17 23:09:41 +02:00
|
|
|
|
|
|
|
LayoutTable::LayoutTable(const Element& element, NonnullRefPtr<StyleProperties> style)
|
|
|
|
: LayoutBlock(&element, move(style))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
LayoutTable::~LayoutTable()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void LayoutTable::layout()
|
|
|
|
{
|
2019-10-18 09:36:46 +02:00
|
|
|
|
2019-10-17 23:09:41 +02:00
|
|
|
LayoutBlock::layout();
|
|
|
|
}
|
2019-10-18 09:36:46 +02:00
|
|
|
|
|
|
|
LayoutTableRow* LayoutTable::first_row()
|
|
|
|
{
|
|
|
|
return first_child_of_type<LayoutTableRow>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const LayoutTableRow* LayoutTable::first_row() const
|
|
|
|
{
|
|
|
|
return first_child_of_type<LayoutTableRow>();
|
|
|
|
}
|