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

Issue 2818713006: FocusableBorder/fractional scales: snap to different pixel (Closed)

Created:
3 years, 8 months ago by Evan Stade
Modified:
3 years, 8 months ago
Reviewers:
tapted, Bret
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

FocusableBorder/fractional scales: snap to different pixel A view can have a fractional pixel size. The pixel size of the canvas we draw to can get rounded down instead of up. By using gfx::ScaleToEnclosedRect instead of gfx::ScaleToEnclosingRect we'll be sure to draw within the canvas's bounds. The linked bug also exhibited itself in the bookmark bubble's inputs at various scale factors --- 1.75, for example. BUG=696434 Review-Url: https://codereview.chromium.org/2818713006 Cr-Commit-Position: refs/heads/master@{#465080} Committed: https://chromium.googlesource.com/chromium/src/+/bc1501887b1ed2b82fc04b01d94ca44fc9fbc1d9

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ui/views/controls/focusable_border.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (4 generated)
Evan Stade
3 years, 8 months ago (2017-04-14 18:56:12 UTC) #2
Bret
LGTM. This might explain some artifacts I've seen floating around...
3 years, 8 months ago (2017-04-14 19:02:08 UTC) #3
tapted
very neat! lgtm (and sorry for the delay - long weekend)
3 years, 8 months ago (2017-04-17 23:41:09 UTC) #4
Evan Stade
On 2017/04/17 23:41:09, tapted wrote: > very neat! lgtm > > (and sorry for the ...
3 years, 8 months ago (2017-04-17 23:44:04 UTC) #6
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/2818713006/1
3 years, 8 months ago (2017-04-17 23:44:15 UTC) #7
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 00:38:46 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/bc1501887b1ed2b82fc04b01d94c...

Powered by Google App Engine
This is Rietveld 408576698