RESOLVED FIXED 142143
Use std::unique_ptr instead of PassOwnPtr|OwnPtr for ScrollAnimator
https://bugs.webkit.org/show_bug.cgi?id=142143
Summary Use std::unique_ptr instead of PassOwnPtr|OwnPtr for ScrollAnimator
Joonghun Park
Reported 2015-03-01 05:03:47 PST
Change from PassOwnPtr|OwnPtr to std::unique_ptr for ScrollAnimator in All port.
Attachments
Patch (5.33 KB, patch)
2015-03-01 05:10 PST, Joonghun Park
no flags
Patch (5.66 KB, patch)
2015-03-01 05:42 PST, Joonghun Park
no flags
Joonghun Park
Comment 1 2015-03-01 05:10:05 PST
Joonghun Park
Comment 2 2015-03-01 05:42:41 PST
Darin Adler
Comment 3 2015-03-01 11:04:02 PST
Comment on attachment 247625 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=247625&action=review > Source/WebCore/platform/ScrollAnimator.h:62 > + explicit ScrollAnimator(ScrollableArea&); It’s not so great that now a client can now accidentally create a ScrollAnimator directly with make_unique, when it should be calling ScrollAnimator::create.
Gyuyoung Kim
Comment 4 2015-03-01 17:04:40 PST
Comment on attachment 247625 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=247625&action=review cq=me. >> Source/WebCore/platform/ScrollAnimator.h:62 >> + explicit ScrollAnimator(ScrollableArea&); > > It’s not so great that now a client can now accidentally create a ScrollAnimator directly with make_unique, when it should be calling ScrollAnimator::create. I also think like that. However, now we don't have best solution yet. In this case, lambdas looks not great benefit. When we have better solution, let's fix it again.
WebKit Commit Bot
Comment 5 2015-03-01 17:49:16 PST
Comment on attachment 247625 [details] Patch Clearing flags on attachment: 247625 Committed r180873: <http://trac.webkit.org/changeset/180873>
WebKit Commit Bot
Comment 6 2015-03-01 17:49:19 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.