diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-25 12:33:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-25 14:42:24 +0200 |
commit | 6fb661e781095d844a5f7d8f4d72a968b65960ee (patch) | |
tree | 04d7178cf38595c058e2cfcbd03f29956799b89c /Userland/Libraries/LibWeb | |
parent | ce764c340a33d3efc8ca6f10acafb57e7a375e9a (diff) | |
download | serenity-6fb661e781095d844a5f7d8f4d72a968b65960ee.zip |
LibWeb: Make HTMLDivElement not "final"
This is to prepare for making some custom internal divs inside the input
element UA shadow tree.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLDivElement.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDivElement.h b/Userland/Libraries/LibWeb/HTML/HTMLDivElement.h index 4af8c17e41..9bb16ebf3d 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDivElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLDivElement.h @@ -11,7 +11,7 @@ namespace Web::HTML { -class HTMLDivElement final : public HTMLElement { +class HTMLDivElement : public HTMLElement { WEB_PLATFORM_OBJECT(HTMLDivElement, HTMLElement); public: @@ -20,9 +20,10 @@ public: // https://www.w3.org/TR/html-aria/#el-div virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::generic; } -private: +protected: HTMLDivElement(DOM::Document&, DOM::QualifiedName); +private: virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override; }; |