LayoutTableRow.h 515 B

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