2020-08-01 03:04:26 +01:00
|
|
|
/*
|
2021-04-28 22:46:44 +02:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2020-08-01 03:04:26 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 03:04:26 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
class HTMLEmbedElement final : public HTMLElement {
|
2022-08-28 13:42:07 +02:00
|
|
|
WEB_PLATFORM_OBJECT(HTMLEmbedElement, HTMLElement);
|
2023-11-19 19:47:52 +01:00
|
|
|
JS_DECLARE_ALLOCATOR(HTMLEmbedElement);
|
2022-08-28 13:42:07 +02:00
|
|
|
|
2020-08-01 03:04:26 +01:00
|
|
|
public:
|
2022-08-28 13:42:07 +02:00
|
|
|
virtual ~HTMLEmbedElement() override;
|
2020-08-01 03:04:26 +01:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
private:
|
2022-02-18 21:00:52 +01:00
|
|
|
HTMLEmbedElement(DOM::Document&, DOM::QualifiedName);
|
2023-01-10 06:28:20 -05:00
|
|
|
|
2023-12-24 14:41:33 +01:00
|
|
|
virtual bool is_html_embed_element() const override { return true; }
|
2023-08-07 08:41:28 +02:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2024-10-01 17:26:01 +01:00
|
|
|
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
2024-11-08 20:14:37 +08:00
|
|
|
virtual void adjust_computed_style(CSS::StyleProperties&) override;
|
2020-08-01 03:04:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2023-12-24 14:41:33 +01:00
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
template<>
|
|
|
|
inline bool Node::fast_is<HTML::HTMLEmbedElement>() const { return is_html_embed_element(); }
|
|
|
|
}
|