LayoutTableRow.h 699 B

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