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, |