From 5133491714d74105476291697c238618ced5003e Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 21 Mar 2022 20:01:47 -0400 Subject: LibWeb: Expose HTMLCollection's root element to its subclasses For example, HTMLOptionsCollection will need to access its root HTMLSelectElement. --- Userland/Libraries/LibWeb/DOM/HTMLCollection.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibWeb/DOM') diff --git a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h index 999b3f9e72..9a4241edb9 100644 --- a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h +++ b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h @@ -53,6 +53,8 @@ public: protected: HTMLCollection(ParentNode& root, Function filter); + NonnullRefPtr root() { return m_root; } + private: NonnullRefPtr m_root; Function m_filter; -- cgit v1.2.3