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

Unified Diff: ui/gfx/geometry/dip_util.cc

Issue 1302233006: aura: Stop converting Rect to RectF implicitly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rectfconvert-aura: . Created 5 years, 4 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 | « ui/base/touch/selection_bound.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/dip_util.cc
diff --git a/ui/gfx/geometry/dip_util.cc b/ui/gfx/geometry/dip_util.cc
index 702d6d36d143b4164e272c5e6aef5d748c8dece3..15b8aa53fe92e44f8d0d3baa0fcc955396487cac 100644
--- a/ui/gfx/geometry/dip_util.cc
+++ b/ui/gfx/geometry/dip_util.cc
@@ -31,7 +31,7 @@ gfx::Size ConvertSizeToDIP(float scale_factor, const gfx::Size& size_in_pixel) {
gfx::Rect ConvertRectToDIP(float scale_factor, const gfx::Rect& rect_in_pixel) {
return gfx::ToFlooredRectDeprecated(
- gfx::ScaleRect(rect_in_pixel, 1.0f / scale_factor));
+ gfx::ScaleRect(gfx::RectF(rect_in_pixel), 1.0f / scale_factor));
}
gfx::Point ConvertPointToPixel(float scale_factor,
« no previous file with comments | « ui/base/touch/selection_bound.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698