HTMLSlotElement.cpp 795 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #include <LibWeb/Bindings/Intrinsics.h>
  8. #include <LibWeb/HTML/HTMLSlotElement.h>
  9. namespace Web::HTML {
  10. HTMLSlotElement::HTMLSlotElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  11. : HTMLElement(document, move(qualified_name))
  12. {
  13. }
  14. HTMLSlotElement::~HTMLSlotElement() = default;
  15. void HTMLSlotElement::initialize(JS::Realm& realm)
  16. {
  17. Base::initialize(realm);
  18. set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLSlotElementPrototype>(realm, "HTMLSlotElement"));
  19. }
  20. void HTMLSlotElement::visit_edges(JS::Cell::Visitor& visitor)
  21. {
  22. Base::visit_edges(visitor);
  23. Slot::visit_edges(visitor);
  24. }
  25. }