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

Unified Diff: ui/gfx/display.cc

Issue 649203003: Type conversion fixes, ui/gfx/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 1 month 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 | « ui/gfx/color_utils.cc ('k') | ui/gfx/geometry/insets.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.cc
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc
index 029359c09382811854da4bd0772d1b5205c1334c..8f0140872f19cb424ce2a4ab08b02c923e6f0b4c 100644
--- a/ui/gfx/display.cc
+++ b/ui/gfx/display.cc
@@ -153,7 +153,7 @@ void Display::SetSize(const gfx::Size& size_in_pixel) {
#if defined(USE_AURA)
gfx::PointF origin_f = origin;
origin_f.Scale(device_scale_factor_);
- origin.SetPoint(origin_f.x(), origin_f.y());
+ origin = gfx::ToFlooredPoint(origin_f);
#endif
SetScaleAndBounds(device_scale_factor_, gfx::Rect(origin, size_in_pixel));
}
« no previous file with comments | « ui/gfx/color_utils.cc ('k') | ui/gfx/geometry/insets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698