LayoutTableCell.h 489 B

12345678910111213141516171819
  1. #pragma once
  2. #include <LibHTML/Layout/LayoutBlock.h>
  3. class LayoutTableCell final : public LayoutBlock {
  4. public:
  5. LayoutTableCell(const Element&, NonnullRefPtr<StyleProperties>);
  6. virtual ~LayoutTableCell() override;
  7. private:
  8. virtual bool is_table_cell() const override { return true; }
  9. virtual const char* class_name() const override { return "LayoutTableCell"; }
  10. };
  11. template<>
  12. inline bool is<LayoutTableCell>(const LayoutNode& node)
  13. {
  14. return node.is_table_cell();
  15. }