HTMLTableElement.h 762 B

123456789101112131415161718192021222324252627282930
  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/DOM/ExceptionOr.h>
  8. #include <LibWeb/HTML/HTMLElement.h>
  9. #include <LibWeb/HTML/HTMLTableRowElement.h>
  10. namespace Web::HTML {
  11. class HTMLTableElement final : public HTMLElement {
  12. public:
  13. using WrapperType = Bindings::HTMLTableElementWrapper;
  14. HTMLTableElement(DOM::Document&, QualifiedName);
  15. virtual ~HTMLTableElement() override;
  16. NonnullRefPtr<DOM::HTMLCollection> rows();
  17. DOM::ExceptionOr<NonnullRefPtr<HTMLTableRowElement>> insert_row(long index);
  18. DOM::ExceptionOr<void> delete_row(long index);
  19. private:
  20. virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
  21. };
  22. }