Chromium Code Reviews
DescriptionFocusableBorder/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 #
Messages
Total messages: 10 (4 generated)
|
|||||||||||||||||||