1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

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.
This commit is contained in:
Timothy Flynn 2024-01-31 15:46:54 -05:00 committed by Andrew Kaster
parent c5f8f940f0
commit fb270289a4

View file

@ -122,7 +122,7 @@ private:
// https://html.spec.whatwg.org/multipage/forms.html#locked-for-reset
bool m_locked_for_reset { false };
Vector<JS::GCPtr<HTMLElement>> m_associated_elements;
Vector<JS::NonnullGCPtr<HTMLElement>> m_associated_elements;
// https://html.spec.whatwg.org/multipage/forms.html#past-names-map
struct PastNameEntry {