mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
Notes:
sideshowbarker
2024-07-17 16:58:02 +09:00
Author: https://github.com/trflynn89
Commit: 5133491714
Pull-request: https://github.com/SerenityOS/serenity/pull/13182
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