Summary: | ScrollAnimatorNone coasting implementation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Scott Byer <scottbyer> | ||||||||||
Component: | New Bugs | Assignee: | 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
Scott Byer
2011-08-15 15:20:37 PDT
Created attachment 103972 [details]
Patch
Created attachment 104371 [details]
Patch
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. Created attachment 104378 [details]
Patch
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 ; Created attachment 104425 [details]
Address review comments
PTAL, I've cleaned up the style issues and rebased. Thanks. Comment on attachment 104425 [details]
Address review comments
Looks great, thanks for explaining some of the math in comments.
Comment on attachment 104425 [details] Address review comments Clearing flags on attachment: 104425 Committed r93682: <http://trac.webkit.org/changeset/93682> All reviewed patches have been landed. Closing bug. |