2019-10-17 23:09:41 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibHTML/Layout/LayoutBox.h>
|
|
|
|
|
|
2019-10-18 09:36:46 +02:00
|
|
|
class LayoutTableCell;
|
|
|
|
|
|
2019-10-17 23:09:41 +02:00
|
|
|
class LayoutTableRow final : public LayoutBox {
|
|
|
|
|
public:
|
|
|
|
|
LayoutTableRow(const Element&, NonnullRefPtr<StyleProperties>);
|
|
|
|
|
virtual ~LayoutTableRow() override;
|
|
|
|
|
|
|
|
|
|
virtual void layout() override;
|
|
|
|
|
|
2019-10-18 09:36:46 +02:00
|
|
|
LayoutTableCell* first_cell();
|
|
|
|
|
const LayoutTableCell* first_cell() const;
|
|
|
|
|
|
|
|
|
|
LayoutTableRow* next_row();
|
|
|
|
|
const LayoutTableRow* next_row() const;
|
|
|
|
|
|
2019-10-17 23:09:41 +02:00
|
|
|
private:
|
2019-10-17 23:34:12 +02:00
|
|
|
virtual bool is_table_row() const override { return true; }
|
2019-10-17 23:09:41 +02:00
|
|
|
virtual const char* class_name() const override { return "LayoutTableRow"; }
|
|
|
|
|
};
|
2019-10-17 23:34:12 +02:00
|
|
|
|
|
|
|
|
template<>
|
|
|
|
|
inline bool is<LayoutTableRow>(const LayoutNode& node)
|
|
|
|
|
{
|
|
|
|
|
return node.is_table_row();
|
|
|
|
|
}
|