HTMLFrameElement.cpp 788 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Bindings/Intrinsics.h>
  7. #include <LibWeb/HTML/HTMLFrameElement.h>
  8. namespace Web::HTML {
  9. JS_DEFINE_ALLOCATOR(HTMLFrameElement);
  10. HTMLFrameElement::HTMLFrameElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  11. : HTMLElement(document, move(qualified_name))
  12. {
  13. }
  14. HTMLFrameElement::~HTMLFrameElement() = default;
  15. void HTMLFrameElement::initialize(JS::Realm& realm)
  16. {
  17. Base::initialize(realm);
  18. WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLFrameElement);
  19. }
  20. // https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
  21. i32 HTMLFrameElement::default_tab_index_value() const
  22. {
  23. // See the base function for the spec comments.
  24. return 0;
  25. }
  26. }