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