1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

LibWeb: Expose HTMLCollection's root element to its subclasses

For example, HTMLOptionsCollection will need to access its root
HTMLSelectElement.
This commit is contained in:
Timothy Flynn 2022-03-21 20:01:47 -04:00 committed by Andreas Kling
parent 324f709d29
commit 5133491714

View file

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