Bug 262407

Summary: Use `HashSet<CheckedRef<Range>>` instead of `WeakHashSet<Range>` for Document::m_ranges
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2023-09-29 15:03:07 PDT
Use `HashSet<CheckedRef<Range>>` instead of `WeakHashSet<Range>` for Document::m_ranges. The Range destructor takes care of removing itself from Document::m_ranges already so we don't need a WeakPtr. Using CheckedRef here is slightly more efficient.
Attachments
Chris Dumez
Comment 1 2023-09-29 15:04:28 PDT
EWS
Comment 2 2023-09-29 17:23:12 PDT
Committed 268680@main (cbb5cdba4811): <https://commits.webkit.org/268680@main> Reviewed commits have been landed. Closing PR #18441 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-09-29 17:24:13 PDT
Note You need to log in before you can comment on or make changes to this bug.