Browse Source

LibWeb: Add missing JS::GCPtr wrappers in HTMLLinkElement

Matthew Olsson 2 years ago
parent
commit
3f22919eb5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h

+ 2 - 2
Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h

@@ -79,13 +79,13 @@ private:
         HTML::Origin origin;
         // environment
         //      An environment
-        HTML::EnvironmentSettingsObject* environment;
+        JS::GCPtr<HTML::EnvironmentSettingsObject> environment;
         // policy container
         //      A policy container
         HTML::PolicyContainer policy_container;
         // document (default null)
         //      Null or a Document
-        Web::DOM::Document* document { nullptr };
+        JS::GCPtr<Web::DOM::Document> document;
         // FIXME: on document ready (default null)
         //          Null or an algorithm accepting a Document
     };