2020-01-18 05:38:21 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-10-04 16:05:52 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-07-26 10:08:16 -03:00
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
2022-06-27 15:48:54 -03:00
|
|
|
#include <LibWeb/HTML/WindowEventHandlers.h>
|
2019-10-04 16:05:52 -03:00
|
|
|
|
2020-07-28 13:20:36 -03:00
|
|
|
namespace Web::HTML {
|
2020-03-07 06:27:02 -03:00
|
|
|
|
2022-06-27 15:48:54 -03:00
|
|
|
class HTMLBodyElement final
|
|
|
|
|
: public HTMLElement
|
|
|
|
|
, public WindowEventHandlers {
|
2022-08-28 08:42:07 -03:00
|
|
|
WEB_PLATFORM_OBJECT(HTMLBodyElement, HTMLElement);
|
2020-07-27 01:04:26 -03:00
|
|
|
|
2022-08-28 08:42:07 -03:00
|
|
|
public:
|
2019-10-04 16:05:52 -03:00
|
|
|
virtual ~HTMLBodyElement() override;
|
|
|
|
|
|
2022-04-01 14:58:27 -03:00
|
|
|
virtual void parse_attribute(FlyString const&, String const&) override;
|
2020-07-26 15:01:35 -03:00
|
|
|
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
2020-03-07 07:17:18 -03:00
|
|
|
|
|
|
|
|
private:
|
2022-08-28 08:42:07 -03:00
|
|
|
HTMLBodyElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
|
|
2021-02-03 18:47:50 -03:00
|
|
|
// ^HTML::GlobalEventHandlers
|
2022-06-27 15:20:09 -03:00
|
|
|
virtual EventTarget& global_event_handlers_to_event_target(FlyString const& event_name) override;
|
2021-02-03 18:47:50 -03:00
|
|
|
|
2022-06-27 15:48:54 -03:00
|
|
|
// ^HTML::WindowEventHandlers
|
|
|
|
|
virtual EventTarget& window_event_handlers_to_event_target() override;
|
|
|
|
|
|
2020-07-26 15:01:35 -03:00
|
|
|
RefPtr<CSS::ImageStyleValue> m_background_style_value;
|
2019-10-04 16:05:52 -03:00
|
|
|
};
|
2019-10-06 15:47:57 -03:00
|
|
|
|
|
|
|
|
}
|