summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Document.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-01 20:50:16 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-06 00:27:09 +0200
commit2bba97964b1daa30877ba715f6e058de5a5100c5 (patch)
tree159db452da35dd1c6789a425e1eddc3682258080 /Userland/Libraries/LibWeb/DOM/Document.h
parent4c887bf6c3ca3fc89618fc2ec9dfb7c3c7fdeffd (diff)
downloadserenity-2bba97964b1daa30877ba715f6e058de5a5100c5.zip
LibWeb: Make HTMLCollection and subclasses GC-allocated
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h
index f4d6e62525..36efd422ca 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.h
+++ b/Userland/Libraries/LibWeb/DOM/Document.h
@@ -172,17 +172,17 @@ public:
void schedule_style_update();
void schedule_layout_update();
- NonnullRefPtr<HTMLCollection> get_elements_by_name(String const&);
- NonnullRefPtr<HTMLCollection> get_elements_by_class_name(FlyString const&);
-
- NonnullRefPtr<HTMLCollection> applets();
- NonnullRefPtr<HTMLCollection> anchors();
- NonnullRefPtr<HTMLCollection> images();
- NonnullRefPtr<HTMLCollection> embeds();
- NonnullRefPtr<HTMLCollection> plugins();
- NonnullRefPtr<HTMLCollection> links();
- NonnullRefPtr<HTMLCollection> forms();
- NonnullRefPtr<HTMLCollection> scripts();
+ JS::NonnullGCPtr<HTMLCollection> get_elements_by_name(String const&);
+ JS::NonnullGCPtr<HTMLCollection> get_elements_by_class_name(FlyString const&);
+
+ JS::NonnullGCPtr<HTMLCollection> applets();
+ JS::NonnullGCPtr<HTMLCollection> anchors();
+ JS::NonnullGCPtr<HTMLCollection> images();
+ JS::NonnullGCPtr<HTMLCollection> embeds();
+ JS::NonnullGCPtr<HTMLCollection> plugins();
+ JS::NonnullGCPtr<HTMLCollection> links();
+ JS::NonnullGCPtr<HTMLCollection> forms();
+ JS::NonnullGCPtr<HTMLCollection> scripts();
String const& source() const { return m_source; }
void set_source(String const& source) { m_source = source; }