LayoutTableRow.cpp 782 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <LibHTML/DOM/Element.h>
  2. #include <LibHTML/Layout/LayoutTableCell.h>
  3. #include <LibHTML/Layout/LayoutTableRow.h>
  4. LayoutTableRow::LayoutTableRow(const Element& element, NonnullRefPtr<StyleProperties> style)
  5. : LayoutBox(&element, move(style))
  6. {
  7. }
  8. LayoutTableRow::~LayoutTableRow()
  9. {
  10. }
  11. void LayoutTableRow::layout()
  12. {
  13. LayoutBox::layout();
  14. }
  15. LayoutTableCell* LayoutTableRow::first_cell()
  16. {
  17. return first_child_of_type<LayoutTableCell>();
  18. }
  19. const LayoutTableCell* LayoutTableRow::first_cell() const
  20. {
  21. return first_child_of_type<LayoutTableCell>();
  22. }
  23. LayoutTableRow* LayoutTableRow::next_row()
  24. {
  25. return next_sibling_of_type<LayoutTableRow>();
  26. }
  27. const LayoutTableRow* LayoutTableRow::next_row() const
  28. {
  29. return next_sibling_of_type<LayoutTableRow>();
  30. }