HTMLBodyElement.h 1012 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include <LibWeb/HTML/WindowEventHandlers.h>
  9. namespace Web::HTML {
  10. class HTMLBodyElement final
  11. : public HTMLElement
  12. , public WindowEventHandlers {
  13. WEB_PLATFORM_OBJECT(HTMLBodyElement, HTMLElement);
  14. public:
  15. virtual ~HTMLBodyElement() override;
  16. virtual void parse_attribute(FlyString const&, String const&) override;
  17. virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
  18. private:
  19. HTMLBodyElement(DOM::Document&, DOM::QualifiedName);
  20. // ^HTML::GlobalEventHandlers
  21. virtual EventTarget& global_event_handlers_to_event_target(FlyString const& event_name) override;
  22. // ^HTML::WindowEventHandlers
  23. virtual EventTarget& window_event_handlers_to_event_target() override;
  24. RefPtr<CSS::ImageStyleValue> m_background_style_value;
  25. };
  26. }
  27. WRAPPER_HACK(HTMLBodyElement, Web::HTML)