Bug 144686

Summary: Purge PassRefPtr in WebCore/html - 3
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: New BugsAssignee: Gyuyoung Kim <gyuyoung.kim>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 144092    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Gyuyoung Kim 2015-05-06 08:00:27 PDT
SSIA.
Comment 1 Gyuyoung Kim 2015-05-06 08:01:17 PDT
Created attachment 252473 [details]
Patch
Comment 2 Darin Adler 2015-05-06 09:28:46 PDT
Comment on attachment 252473 [details]
Patch

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

> Source/WebCore/html/TimeRanges.cpp:35
> +Ref<TimeRanges> TimeRanges::create()

Oops, looks like this patch is missing TimeRanges.h.

> Source/WebCore/html/track/VTTRegionList.h:43
> +        return adoptRef(*new VTTRegionList());

I suggest we get rid of the unneeded () here.
Comment 3 Gyuyoung Kim 2015-05-06 18:29:33 PDT
Created attachment 252550 [details]
Patch
Comment 4 Gyuyoung Kim 2015-05-06 18:29:53 PDT
(In reply to comment #2)
> Comment on attachment 252473 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=252473&action=review
> 
> > Source/WebCore/html/TimeRanges.cpp:35
> > +Ref<TimeRanges> TimeRanges::create()
> 
> Oops, looks like this patch is missing TimeRanges.h.
> 
> > Source/WebCore/html/track/VTTRegionList.h:43
> > +        return adoptRef(*new VTTRegionList());
> 
> I suggest we get rid of the unneeded () here.

All done.
Comment 5 Gyuyoung Kim 2015-05-06 22:48:56 PDT
Created attachment 252571 [details]
Patch
Comment 6 Gyuyoung Kim 2015-05-07 01:25:55 PDT
Created attachment 252579 [details]
Patch
Comment 7 Gyuyoung Kim 2015-05-07 05:33:41 PDT
Created attachment 252587 [details]
Patch
Comment 8 Andreas Kling 2015-05-07 09:11:16 PDT
Comment on attachment 252587 [details]
Patch

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

r=me

> Tools/TestWebKitAPI/Tests/WebCore/TimeRanges.cpp:55
> -    ASSERT_RANGE("{ }", TimeRanges::create());
> +    ASSERT_RANGE("{ }", TimeRanges::create().ptr());

This test is now asserting that a Ref is non-null, which is a bit funny, but fine.

> Tools/TestWebKitAPI/Tests/WebCore/TimeRanges.cpp:60
> -    ASSERT_RANGE("{ [1,2) }", TimeRanges::create(1, 2));
> +    ASSERT_RANGE("{ [1,2) }", TimeRanges::create(1, 2).ptr());

Same here.
Comment 9 Gyuyoung Kim 2015-05-07 18:30:31 PDT
Comment on attachment 252587 [details]
Patch

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

>> Tools/TestWebKitAPI/Tests/WebCore/TimeRanges.cpp:55
>> +    ASSERT_RANGE("{ }", TimeRanges::create().ptr());
> 
> This test is now asserting that a Ref is non-null, which is a bit funny, but fine.

This seems to check if time range is correct, not nullptr or not. So it would be keep this for now.

>> Tools/TestWebKitAPI/Tests/WebCore/TimeRanges.cpp:60
>> +    ASSERT_RANGE("{ [1,2) }", TimeRanges::create(1, 2).ptr());
> 
> Same here.

ditto.
Comment 10 WebKit Commit Bot 2015-05-07 19:19:55 PDT
Comment on attachment 252587 [details]
Patch

Clearing flags on attachment: 252587

Committed r183975: <http://trac.webkit.org/changeset/183975>
Comment 11 WebKit Commit Bot 2015-05-07 19:20:00 PDT
All reviewed patches have been landed.  Closing bug.