HTMLHtmlElement.h 720 B

12345678910111213141516171819202122232425262728293031323334
  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. WEB_PLATFORM_OBJECT(HTMLHtmlElement, HTMLElement);
  11. public:
  12. virtual ~HTMLHtmlElement() override;
  13. bool should_use_body_background_properties() const;
  14. private:
  15. HTMLHtmlElement(DOM::Document&, DOM::QualifiedName);
  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. }
  23. WRAPPER_HACK(HTMLHtmlElement, Web::HTML)