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

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: Fix test Created 6 years, 2 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
Index: ui/gfx/display.cc
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc
index 029359c09382811854da4bd0772d1b5205c1334c..9d5c0c081cbffeee984c147ef7ee785fdea35da0 100644
--- a/ui/gfx/display.cc
+++ b/ui/gfx/display.cc
@@ -153,7 +153,8 @@ 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());
+ // !!! Should this use ToRoundedPoint() instead?
danakj 2014/10/18 18:40:06 It looks like the size gets floored: https://code.
Peter Kasting 2014/10/20 23:38:56 Acknowledged.
+ origin = gfx::ToFlooredPoint(origin_f);
#endif
SetScaleAndBounds(device_scale_factor_, gfx::Rect(origin, size_in_pixel));
}

Powered by Google App Engine
This is Rietveld 408576698