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

Issue 2384063007: Fix scrollbar overflow with ScaleToEnclosingRectSafe (Closed)

Created:
4 years, 2 months ago by enne (OOO)
Modified:
4 years, 2 months ago
Reviewers:
danakj
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix scrollbar overflow with ScaleToEnclosingRectSafe ScaleToEnclosingRect DCHECKS that the scale that's being done won't overflow, however this can't be known because the scrollbar's internal scale is determined by page content. Clamp these values safely instead of DCHECKing. R=danakj@chromium.org BUG=652604 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/aa23d5d071524015ed425c4d6e981c1621479620 Cr-Commit-Position: refs/heads/master@{#422987}

Patch Set 1 #

Patch Set 2 : Fix unittests oops #

Total comments: 1

Patch Set 3 : With comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -3 lines) Patch
M cc/layers/painted_scrollbar_layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/geometry/rect.h View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M ui/gfx/geometry/rect_unittest.cc View 1 2 chunks +45 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
enne (OOO)
4 years, 2 months ago (2016-10-04 21:00:55 UTC) #2
danakj
LGTM https://codereview.chromium.org/2384063007/diff/20001/ui/gfx/geometry/rect.h File ui/gfx/geometry/rect.h (right): https://codereview.chromium.org/2384063007/diff/20001/ui/gfx/geometry/rect.h#newcode305 ui/gfx/geometry/rect.h:305: inline Rect ScaleToEnclosedRect(const Rect& rect, Leave a comment ...
4 years, 2 months ago (2016-10-04 21:32:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384063007/40001
4 years, 2 months ago (2016-10-04 21:43:36 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-04 23:12:07 UTC) #7
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 23:14:46 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/aa23d5d071524015ed425c4d6e981c1621479620
Cr-Commit-Position: refs/heads/master@{#422987}

Powered by Google App Engine
This is Rietveld 408576698