LayoutTable.cpp 546 B

12345678910111213141516171819202122232425262728
  1. #include <LibHTML/DOM/Element.h>
  2. #include <LibHTML/Layout/LayoutTable.h>
  3. #include <LibHTML/Layout/LayoutTableRow.h>
  4. LayoutTable::LayoutTable(const Element& element, NonnullRefPtr<StyleProperties> style)
  5. : LayoutBlock(&element, move(style))
  6. {
  7. }
  8. LayoutTable::~LayoutTable()
  9. {
  10. }
  11. void LayoutTable::layout()
  12. {
  13. LayoutBlock::layout();
  14. }
  15. LayoutTableRow* LayoutTable::first_row()
  16. {
  17. return first_child_of_type<LayoutTableRow>();
  18. }
  19. const LayoutTableRow* LayoutTable::first_row() const
  20. {
  21. return first_child_of_type<LayoutTableRow>();
  22. }