HTMLTableCellElement.h 788 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLElement.h>
  8. namespace Web::HTML {
  9. class HTMLTableCellElement final : public HTMLElement {
  10. WEB_PLATFORM_OBJECT(HTMLTableCellElement, HTMLElement);
  11. public:
  12. virtual ~HTMLTableCellElement() override;
  13. unsigned col_span() const;
  14. unsigned row_span() const;
  15. void set_col_span(unsigned);
  16. void set_row_span(unsigned);
  17. virtual Optional<ARIA::Role> default_role() const override;
  18. private:
  19. HTMLTableCellElement(DOM::Document&, DOM::QualifiedName);
  20. virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
  21. virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
  22. };
  23. }