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-09-29 11:24:57 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-07-26 10:08:16 -03:00
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
2019-09-29 11:24:57 -03:00
|
|
|
|
2020-07-28 13:20:36 -03:00
|
|
|
namespace Web::HTML {
|
2020-03-07 06:27:02 -03:00
|
|
|
|
2020-07-27 22:54:19 -03:00
|
|
|
class HTMLHtmlElement final : public HTMLElement {
|
2019-09-29 11:24:57 -03:00
|
|
|
public:
|
2020-07-27 01:04:26 -03:00
|
|
|
using WrapperType = Bindings::HTMLHtmlElementWrapper;
|
|
|
|
|
|
2021-02-07 07:20:15 -03:00
|
|
|
HTMLHtmlElement(DOM::Document&, QualifiedName);
|
2019-09-29 11:24:57 -03:00
|
|
|
virtual ~HTMLHtmlElement() override;
|
2021-05-13 10:39:30 -03:00
|
|
|
|
|
|
|
|
bool should_use_body_background_properties() const;
|
2021-10-27 12:58:57 -03:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
virtual bool is_html_html_element() const override { return true; }
|
2019-09-29 11:24:57 -03:00
|
|
|
};
|
2019-10-06 15:37:39 -03:00
|
|
|
|
|
|
|
|
}
|
2021-10-27 12:58:57 -03:00
|
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
|
template<>
|
|
|
|
|
inline bool Node::fast_is<HTML::HTMLHtmlElement>() const { return is_html_html_element(); }
|
|
|
|
|
}
|