Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Issue 10825407: Fix beginSmoothScroll by doing duration computation in ms (Closed)

Created:
8 years, 4 months ago by nduca
Modified:
8 years, 4 months ago
Reviewers:
piman
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, dtu
Visibility:
Public.

Description

beginSmoothScroll tries to do a simple animation for a given length in seconds, specified as a double. To do a half-second animation, it did base::TimeDelta::FromSeconds(0.5). base::TimeDelta::FromSeconds takes an in64, so this silently converts to FromSeconds(0) causing the smooth scroll to do exactly one step and stop. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152186

Patch Set 1 #

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : int64 #

Total comments: 1

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
nduca
8 years, 4 months ago (2012-08-17 19:26:18 UTC) #1
piman
lgtm
8 years, 4 months ago (2012-08-17 19:27:01 UTC) #2
piman
http://codereview.chromium.org/10825407/diff/2001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): http://codereview.chromium.org/10825407/diff/2001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode25 content/browser/renderer_host/render_widget_host_view_base.cc:25: static const double kDurationOfNearScrollGestureMs = 150; Actually, should those ...
8 years, 4 months ago (2012-08-17 19:28:28 UTC) #3
nduca
Good point, fixing. Thanks
8 years, 4 months ago (2012-08-17 19:31:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/10825407/3003
8 years, 4 months ago (2012-08-17 19:42:03 UTC) #5
piman
http://codereview.chromium.org/10825407/diff/3003/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): http://codereview.chromium.org/10825407/diff/3003/content/browser/renderer_host/render_widget_host_view_base.cc#newcode133 content/browser/renderer_host/render_widget_host_view_base.cc:133: double duration_in_ms; here too?
8 years, 4 months ago (2012-08-17 19:45:44 UTC) #6
nduca
Man, I suck!
8 years, 4 months ago (2012-08-17 19:51:33 UTC) #7
piman
lgtm
8 years, 4 months ago (2012-08-17 19:53:48 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-08-17 20:09:06 UTC) #9

Powered by Google App Engine
This is Rietveld 408576698