diff options
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutTable.cpp')
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutTable.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutTable.cpp b/Libraries/LibHTML/Layout/LayoutTable.cpp index b2f48c622d..6928a211b8 100644 --- a/Libraries/LibHTML/Layout/LayoutTable.cpp +++ b/Libraries/LibHTML/Layout/LayoutTable.cpp @@ -1,5 +1,6 @@ #include <LibHTML/DOM/Element.h> #include <LibHTML/Layout/LayoutTable.h> +#include <LibHTML/Layout/LayoutTableRow.h> LayoutTable::LayoutTable(const Element& element, NonnullRefPtr<StyleProperties> style) : LayoutBlock(&element, move(style)) @@ -12,5 +13,16 @@ LayoutTable::~LayoutTable() void LayoutTable::layout() { + LayoutBlock::layout(); } + +LayoutTableRow* LayoutTable::first_row() +{ + return first_child_of_type<LayoutTableRow>(); +} + +const LayoutTableRow* LayoutTable::first_row() const +{ + return first_child_of_type<LayoutTableRow>(); +} |