Bug 149091

Summary: Remove all uses of PassRefPtr in crypto, storage, and history
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: New BugsAssignee: Gyuyoung Kim <gyuyoung.kim>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, japhet
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 144092    
Attachments:
Description Flags
Patch
none
Patch none

Description Gyuyoung Kim 2015-09-12 08:25:34 PDT
SSIA
Comment 1 Gyuyoung Kim 2015-09-12 08:34:18 PDT
Created attachment 261055 [details]
Patch
Comment 2 Andreas Kling 2015-09-13 10:14:08 PDT
Comment on attachment 261055 [details]
Patch

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

> Source/WebCore/crypto/SubtleCrypto.h:41
> -    static PassRefPtr<SubtleCrypto> create(Document& document) { return adoptRef(new SubtleCrypto(document)); }
> +    static RefPtr<SubtleCrypto> create(Document& document) { return adoptRef(*new SubtleCrypto(document)); }

Should return Ref.

> Source/WebCore/storage/StorageMap.h:59
> -    PassRefPtr<StorageMap> copy();
> +    RefPtr<StorageMap> copy();

Should return Ref.
Comment 3 Gyuyoung Kim 2015-09-13 18:08:05 PDT
Comment on attachment 261055 [details]
Patch

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

>> Source/WebCore/crypto/SubtleCrypto.h:41
>> +    static RefPtr<SubtleCrypto> create(Document& document) { return adoptRef(*new SubtleCrypto(document)); }
> 
> Should return Ref.

Oops.

>> Source/WebCore/storage/StorageMap.h:59
>> +    RefPtr<StorageMap> copy();
> 
> Should return Ref.

done.
Comment 4 Gyuyoung Kim 2015-09-13 18:08:28 PDT
Created attachment 261092 [details]
Patch
Comment 5 WebKit Commit Bot 2015-09-13 19:36:51 PDT
Comment on attachment 261092 [details]
Patch

Clearing flags on attachment: 261092

Committed r189675: <http://trac.webkit.org/changeset/189675>
Comment 6 WebKit Commit Bot 2015-09-13 19:36:55 PDT
All reviewed patches have been landed.  Closing bug.