diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-03-21 20:01:47 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-22 02:08:15 +0100 |
commit | 5133491714d74105476291697c238618ced5003e (patch) | |
tree | 32951a8719cd4fc5fa21b9d549a6c53604c845aa /Userland/Libraries/LibWeb | |
parent | 324f709d29daf05035b545f00b73ddd631899c2c (diff) | |
download | serenity-5133491714d74105476291697c238618ced5003e.zip |
LibWeb: Expose HTMLCollection's root element to its subclasses
For example, HTMLOptionsCollection will need to access its root
HTMLSelectElement.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/HTMLCollection.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<bool(Element const&)> filter); + NonnullRefPtr<ParentNode> root() { return m_root; } + private: NonnullRefPtr<ParentNode> m_root; Function<bool(Element const&)> m_filter; |