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

Issue 409193002: Avoid div-by-zero in thumb quad computation (Closed)

Created:
6 years, 5 months ago by Ian Vollick
Modified:
6 years, 5 months ago
Reviewers:
ajuma, weiliangc, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Project:
chromium
Visibility:
Public.

Description

Avoid div-by-zero in thumb quad computation We used to have trouble when the max scroll offset was zero. With this cl we detect this case and set a reasonable scroll thumb offset. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284773

Patch Set 1 : . #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -7 lines) Patch
M cc/layers/scrollbar_layer_impl_base.cc View 1 chunk +7 lines, -3 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 4 chunks +20 lines, -4 lines 3 comments Download

Messages

Total messages: 13 (0 generated)
Ian Vollick
6 years, 5 months ago (2014-07-22 18:36:26 UTC) #1
weiliangc
https://codereview.chromium.org/409193002/diff/20001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (right): https://codereview.chromium.org/409193002/diff/20001/cc/layers/scrollbar_layer_unittest.cc#newcode277 cc/layers/scrollbar_layer_unittest.cc:277: const int kTrackStart = 1; I don't understand why ...
6 years, 5 months ago (2014-07-22 18:49:46 UTC) #2
Ian Vollick
https://codereview.chromium.org/409193002/diff/20001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (right): https://codereview.chromium.org/409193002/diff/20001/cc/layers/scrollbar_layer_unittest.cc#newcode277 cc/layers/scrollbar_layer_unittest.cc:277: const int kTrackStart = 1; On 2014/07/22 18:49:46, weiliangc ...
6 years, 5 months ago (2014-07-22 18:55:00 UTC) #3
weiliangc
lgtm https://codereview.chromium.org/409193002/diff/20001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (right): https://codereview.chromium.org/409193002/diff/20001/cc/layers/scrollbar_layer_unittest.cc#newcode277 cc/layers/scrollbar_layer_unittest.cc:277: const int kTrackStart = 1; On 2014/07/22 18:55:00, ...
6 years, 5 months ago (2014-07-22 19:00:13 UTC) #4
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 5 months ago (2014-07-22 19:01:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/409193002/20001
6 years, 5 months ago (2014-07-22 19:03:24 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-22 19:03:25 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 5 months ago (2014-07-22 19:03:26 UTC) #8
ajuma
lgtm
6 years, 5 months ago (2014-07-22 19:09:44 UTC) #9
enne (OOO)
lgtm
6 years, 5 months ago (2014-07-22 19:11:26 UTC) #10
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 5 months ago (2014-07-22 19:13:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/409193002/20001
6 years, 5 months ago (2014-07-22 19:14:35 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 21:16:27 UTC) #13
Message was sent while issue was closed.
Change committed as 284773

Powered by Google App Engine
This is Rietveld 408576698