HTMLFrameElement.cpp 843 B

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