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:
parent
324f709d29
commit
5133491714
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue