HTMLFrameElement.cpp 809 B

1234567891011121314151617181920212223242526272829303132
  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. HTMLFrameElement::HTMLFrameElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  10. : HTMLElement(document, move(qualified_name))
  11. {
  12. }
  13. HTMLFrameElement::~HTMLFrameElement() = default;
  14. void HTMLFrameElement::initialize(JS::Realm& realm)
  15. {
  16. Base::initialize(realm);
  17. set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLFrameElementPrototype>(realm, "HTMLFrameElement"));
  18. }
  19. // https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
  20. i32 HTMLFrameElement::default_tab_index_value() const
  21. {
  22. // See the base function for the spec comments.
  23. return 0;
  24. }
  25. }