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

Issue 1772023002: Guard against division by zero for useless scroll bars. (Closed)

Created:
4 years, 9 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@2661
Target Ref:
refs/pending/branch-heads/2661
Project:
chromium
Visibility:
Public.

Description

Guard against division by zero for useless scroll bars. This patch adds protection against division by zero when a scroll bar's thumb is the full size of the track (i.e. the scroll bar is useless). BUG=591933 Review URL: https://codereview.chromium.org/1769553003 Cr-Commit-Position: refs/heads/master@{#379437} (cherry-picked from commit 5c6639a0a0b75d2696f6b3c9a5a47c8dc6096df8) R=sky@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/87686973fe8171dfbc515c81e50b9602b9a8cf12

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M ui/views/controls/scrollbar/base_scroll_bar.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/scrollbar/base_scroll_bar.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M ui/views/controls/scrollbar/scrollbar_unittest.cc View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Reilly Grant (use Gerrit)
Please review this merge.
4 years, 9 months ago (2016-03-07 21:57:19 UTC) #2
sky
Generally we just TBR merges. On Mon, Mar 7, 2016 at 1:57 PM, <reillyg@chromium.org> wrote: ...
4 years, 9 months ago (2016-03-07 23:50:55 UTC) #3
sky
LGTM
4 years, 9 months ago (2016-03-07 23:51:04 UTC) #4
Reilly Grant (use Gerrit)
4 years, 9 months ago (2016-03-07 23:57:56 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
87686973fe8171dfbc515c81e50b9602b9a8cf12 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698