LayoutTable.h 496 B

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