From fb270289a4a267f483f5cead3ff17f82d116bf7e Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 31 Jan 2024 15:46:54 -0500 Subject: [PATCH] LibWeb: Store HTMLFormElement associated elements as nonnull GC pointers We never store null elements in this list, so let's avoid confusion and store the elements as NonnullGCPtr. --- Userland/Libraries/LibWeb/HTML/HTMLFormElement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h index 67f461132a..4bb43e72cc 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h @@ -122,7 +122,7 @@ private: // https://html.spec.whatwg.org/multipage/forms.html#locked-for-reset bool m_locked_for_reset { false }; - Vector> m_associated_elements; + Vector> m_associated_elements; // https://html.spec.whatwg.org/multipage/forms.html#past-names-map struct PastNameEntry {