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

Unified Diff: ui/views/controls/focusable_border.cc

Issue 2818713006: FocusableBorder/fractional scales: snap to different pixel (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/focusable_border.cc
diff --git a/ui/views/controls/focusable_border.cc b/ui/views/controls/focusable_border.cc
index 972bb560e1c4ad3f34fd9f1a4ce13f6d7c76fb93..e96914d5697a24d907a39f7b34b56e5fa9cd1963 100644
--- a/ui/views/controls/focusable_border.cc
+++ b/ui/views/controls/focusable_border.cc
@@ -54,7 +54,7 @@ void FocusableBorder::Paint(const View& view, gfx::Canvas* canvas) {
flags.setStrokeWidth(SkIntToScalar(stroke_width_px));
// Scale the rect and snap to pixel boundaries.
- gfx::RectF rect(gfx::ScaleToEnclosingRect(view.GetLocalBounds(), dsf));
+ gfx::RectF rect(gfx::ScaleToEnclosedRect(view.GetLocalBounds(), dsf));
rect.Inset(gfx::InsetsF(stroke_width_px / 2.0f));
SkPath path;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698