mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
LibWeb: Use RefPtrs more in getElementById() and getElementsByName()
Passing around Vector<Element*> is not a great idea long-term.
This commit is contained in:
parent
9123920a19
commit
51dbea3a0e
4 changed files with 11 additions and 11 deletions
|
@ -127,7 +127,7 @@ public:
|
|||
|
||||
void schedule_style_update();
|
||||
|
||||
Vector<const Element*> get_elements_by_name(const String&) const;
|
||||
NonnullRefPtrVector<Element> get_elements_by_name(const String&) const;
|
||||
NonnullRefPtrVector<Element> get_elements_by_tag_name(const FlyString&) const;
|
||||
|
||||
const String& source() const { return m_source; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue