mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Make HTMLCollection and subclasses GC-allocated
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2bba97964b Pull-request: https://github.com/SerenityOS/serenity/pull/14816 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/linusg ✅
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user