HTMLHtmlElement.h 680 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2018-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 HTMLHtmlElement final : public HTMLElement {
  10. public:
  11. using WrapperType = Bindings::HTMLHtmlElementWrapper;
  12. HTMLHtmlElement(DOM::Document&, DOM::QualifiedName);
  13. virtual ~HTMLHtmlElement() override;
  14. bool should_use_body_background_properties() const;
  15. private:
  16. virtual bool is_html_html_element() const override { return true; }
  17. };
  18. }
  19. namespace Web::DOM {
  20. template<>
  21. inline bool Node::fast_is<HTML::HTMLHtmlElement>() const { return is_html_html_element(); }
  22. }