Bug 66258

Summary: ScrollAnimatorNone coasting implementation
Product: WebKit Reporter: Scott Byer <scottbyer>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, jamesr, sam, scottbyer, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Address review comments none

Description Scott Byer 2011-08-15 15:20:37 PDT
ScrollAnimatorNone coasting implementation
Comment 1 Scott Byer 2011-08-15 16:06:41 PDT
Created attachment 103972 [details]
Patch
Comment 2 Scott Byer 2011-08-18 11:34:17 PDT
Created attachment 104371 [details]
Patch
Comment 3 Scott Byer 2011-08-18 11:36:49 PDT
Rebased. James, if you have a chance, could you review this? It's slightly big, but is mostly tests. As always, feel free to point me at someone else.
Comment 4 Scott Byer 2011-08-18 12:02:11 PDT
Created attachment 104378 [details]
Patch
Comment 5 James Robinson 2011-08-18 12:26:25 PDT
Comment on attachment 104378 [details]
Patch

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

> Source/WebCore/platform/ScrollAnimatorNone.cpp:141
> +        double t1 = std::min(t, 1 / 2.75);

In WebKit, we prefer to put a 'using namespace std' at the top of the file and use the name unqualified.

Where are all of these magical numbers coming from?  Is it possible to give them useful symbolic names? They seem a little precise to be completely arbitrary.

> Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp:416
> +    for (double t = .25 ; t < 1 ; t += .25) {

nit: odd spacing here, i wouldn't expect a space before the ;
Comment 6 Scott Byer 2011-08-18 16:55:07 PDT
Created attachment 104425 [details]
Address review comments
Comment 7 Scott Byer 2011-08-23 14:33:50 PDT
PTAL, I've cleaned up the style issues and rebased. Thanks.
Comment 8 James Robinson 2011-08-23 17:38:43 PDT
Comment on attachment 104425 [details]
Address review comments

Looks great, thanks for explaining some of the math in comments.
Comment 9 WebKit Review Bot 2011-08-23 18:37:03 PDT
Comment on attachment 104425 [details]
Address review comments

Clearing flags on attachment: 104425

Committed r93682: <http://trac.webkit.org/changeset/93682>
Comment 10 WebKit Review Bot 2011-08-23 18:37:08 PDT
All reviewed patches have been landed.  Closing bug.