TableCellBox.h 668 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. JS_CELL(TableCellBox, BlockContainer);
  11. public:
  12. TableCellBox(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>);
  13. TableCellBox(DOM::Document&, DOM::Element*, CSS::ComputedValues);
  14. virtual ~TableCellBox() override;
  15. size_t colspan() const;
  16. size_t rowspan() const;
  17. static CSS::Display static_display(bool) { return CSS::Display { CSS::Display::Internal::TableCell }; }
  18. };
  19. }