2019-10-17 18:09:41 -03: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 04:36:46 -03:00
|
|
|
LayoutTableCell* next_cell() { return next_sibling_of_type<LayoutTableCell>(); }
|
|
|
|
|
const LayoutTableCell* next_cell() const { return next_sibling_of_type<LayoutTableCell>(); }
|
|
|
|
|
|
2019-10-17 18:09:41 -03:00
|
|
|
private:
|
2019-10-17 18:34:12 -03:00
|
|
|
virtual bool is_table_cell() const override { return true; }
|
2019-10-17 18:09:41 -03:00
|
|
|
virtual const char* class_name() const override { return "LayoutTableCell"; }
|
|
|
|
|
};
|
2019-10-17 18:34:12 -03:00
|
|
|
|
|
|
|
|
template<>
|
|
|
|
|
inline bool is<LayoutTableCell>(const LayoutNode& node)
|
|
|
|
|
{
|
|
|
|
|
return node.is_table_cell();
|
|
|
|
|
}
|