RESOLVED FIXED266158
Make WeakPtr / WeakRef more convenient to use
https://bugs.webkit.org/show_bug.cgi?id=266158
Summary Make WeakPtr / WeakRef more convenient to use
Chris Dumez
Reported 2023-12-09 15:41:37 PST
Make WeakPtr / WeakRef more convenient to use and more consistent with RefPtr / Ref: - Add WeakPtr::releaseNonNull() that returns a WeakRef - Add WeakPtr constructors that that in a `const WeakRef&` / `WeakRef&&` - Have downcast<>() return a WeakPtr / WeakRef when passing in a WeakPtr / WeakRef - Introduce a dynamicDowncast<>() which works with WeakPtr / WeakRef
Attachments
Chris Dumez
Comment 1 2023-12-09 16:10:28 PST
EWS
Comment 2 2023-12-10 09:29:51 PST
Committed 271841@main (e9948836bf97): <https://commits.webkit.org/271841@main> Reviewed commits have been landed. Closing PR #21579 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-12-10 09:30:15 PST
Note You need to log in before you can comment on or make changes to this bug.