From c2bf391f8163be7e7540b1fe27a56aaf07c9ff05 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 20 Aug 2023 13:22:41 +1200 Subject: [PATCH] LibWeb: Don't mark LiveNodeList as final This is to accommodate for adding the RadioNodeList interface which returns a live list of elements. --- Userland/Libraries/LibWeb/DOM/LiveNodeList.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/DOM/LiveNodeList.h b/Userland/Libraries/LibWeb/DOM/LiveNodeList.h index cffd68aafa..80b97d66b5 100644 --- a/Userland/Libraries/LibWeb/DOM/LiveNodeList.h +++ b/Userland/Libraries/LibWeb/DOM/LiveNodeList.h @@ -14,7 +14,7 @@ namespace Web::DOM { // FIXME: Just like HTMLCollection, LiveNodeList currently does no caching. -class LiveNodeList final : public NodeList { +class LiveNodeList : public NodeList { WEB_PLATFORM_OBJECT(LiveNodeList, NodeList); public: @@ -31,9 +31,10 @@ public: virtual bool is_supported_property_index(u32) const override; -private: +protected: LiveNodeList(JS::Realm&, Node& root, Scope, Function filter); +private: virtual void visit_edges(Cell::Visitor&) override; JS::MarkedVector collection() const;