LibWeb: Make HTMLDivElement not "final"

This is to prepare for making some custom internal divs inside the input
element UA shadow tree.
This commit is contained in:
Andreas Kling 2023-05-25 12:33:57 +02:00
parent ce764c340a
commit 6fb661e781
Notes: sideshowbarker 2024-07-17 03:10:07 +09:00

View File

@ -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;
};