HTMLTableRowElement.h 695 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/HTML/HTMLElement.h>
  8. namespace Web::HTML {
  9. class HTMLTableRowElement final : public HTMLElement {
  10. WEB_PLATFORM_OBJECT(HTMLTableRowElement, HTMLElement);
  11. public:
  12. virtual ~HTMLTableRowElement() override;
  13. JS::NonnullGCPtr<DOM::HTMLCollection> cells() const;
  14. int row_index() const;
  15. int section_row_index() const;
  16. WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLTableCellElement>> insert_cell(i32 index);
  17. WebIDL::ExceptionOr<void> delete_cell(i32 index);
  18. private:
  19. HTMLTableRowElement(DOM::Document&, DOM::QualifiedName);
  20. };
  21. }