mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:57:44 +00:00
LibWeb: Make HTMLCollection and subclasses GC-allocated
This commit is contained in:
parent
4c887bf6c3
commit
2bba97964b
22 changed files with 115 additions and 85 deletions
|
@ -23,7 +23,7 @@ class HTMLSelectElement final
|
|||
public:
|
||||
virtual ~HTMLSelectElement() override;
|
||||
|
||||
RefPtr<HTMLOptionsCollection> const& options();
|
||||
JS::GCPtr<HTMLOptionsCollection> const& options();
|
||||
|
||||
DOM::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, Optional<HTMLElementOrElementIndex> before = {});
|
||||
|
||||
|
@ -56,7 +56,9 @@ public:
|
|||
private:
|
||||
HTMLSelectElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
RefPtr<HTMLOptionsCollection> m_options;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
JS::GCPtr<HTMLOptionsCollection> m_options;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue