TableCellBox.h 763 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/BlockContainer.h>
  8. namespace Web::Layout {
  9. class TableCellBox final : public BlockContainer {
  10. public:
  11. TableCellBox(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>);
  12. TableCellBox(DOM::Document&, DOM::Element*, CSS::ComputedValues);
  13. virtual ~TableCellBox() override;
  14. TableCellBox* next_cell() { return next_sibling_of_type<TableCellBox>(); }
  15. const TableCellBox* next_cell() const { return next_sibling_of_type<TableCellBox>(); }
  16. size_t colspan() const;
  17. static CSS::Display static_display() { return CSS::Display { CSS::Display::Internal::TableCell }; }
  18. };
  19. }