Bug 228574

Summary: makeWeakPtr should support Ref and RefPtr as the argument
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: New BugsAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, darin, ews-watchlist, ggaren, webkit-bug-importer, wenson_hsieh, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Ryosuke Niwa 2021-07-28 16:47:17 PDT
makeWeakPtr should support Ref and RefPtr as the argument
Comment 1 Ryosuke Niwa 2021-07-28 16:51:02 PDT
Created attachment 434475 [details]
Patch
Comment 2 Wenson Hsieh 2021-07-28 16:56:25 PDT
Comment on attachment 434475 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=434475&action=review

r=mews

> Tools/TestWebKitAPI/Tests/WTF/WeakPtr.cpp:370
> +    Ref baseObject = BaseObjectWithRefAndWeakPtr::create();

Nit - auto?
Comment 3 Ryosuke Niwa 2021-07-28 17:26:47 PDT
(In reply to Wenson Hsieh from comment #2)
> Comment on attachment 434475 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=434475&action=review
> 
> r=mews
> 
> > Tools/TestWebKitAPI/Tests/WTF/WeakPtr.cpp:370
> > +    Ref baseObject = BaseObjectWithRefAndWeakPtr::create();
> 
> Nit - auto?

Oh, I wanted to explicitly name Ref here since I have tests for RefPtr as well as Ref.
Comment 4 EWS 2021-07-28 19:33:14 PDT
Committed r280414 (240054@main): <https://commits.webkit.org/240054@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 434475 [details].
Comment 5 Radar WebKit Bug Importer 2021-07-28 19:34:16 PDT
<rdar://problem/81249177>