From 6fb661e781095d844a5f7d8f4d72a968b65960ee Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 25 May 2023 12:33:57 +0200 Subject: [PATCH] LibWeb: Make HTMLDivElement not "final" This is to prepare for making some custom internal divs inside the input element UA shadow tree. --- Userland/Libraries/LibWeb/HTML/HTMLDivElement.h | 5 +++-- 1 file 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 default_role() const override { return ARIA::Role::generic; } -private: +protected: HTMLDivElement(DOM::Document&, DOM::QualifiedName); +private: virtual JS::ThrowCompletionOr initialize(JS::Realm&) override; };