| Index: ui/compositor/dip_util.cc
|
| diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc
|
| index 5adf7c4c35acc4c33273d68fc3020451739ae789..104a5da4d99525bf3278ab58b95c4a7596cc8690 100644
|
| --- a/ui/compositor/dip_util.cc
|
| +++ b/ui/compositor/dip_util.cc
|
| @@ -32,7 +32,7 @@ gfx::Point ConvertPointToDIP(const Layer* layer,
|
| gfx::Size ConvertSizeToDIP(const Layer* layer,
|
| const gfx::Size& size_in_pixel) {
|
| return gfx::ToFlooredSize(
|
| - size_in_pixel.Scale(1.0f / GetDeviceScaleFactor(layer)));
|
| + gfx::ScaleSize(size_in_pixel, 1.0f / GetDeviceScaleFactor(layer)));
|
| }
|
|
|
| gfx::Rect ConvertRectToDIP(const Layer* layer,
|
| @@ -49,7 +49,8 @@ gfx::Point ConvertPointToPixel(const Layer* layer,
|
|
|
| gfx::Size ConvertSizeToPixel(const Layer* layer,
|
| const gfx::Size& size_in_dip) {
|
| - return gfx::ToFlooredSize(size_in_dip.Scale(GetDeviceScaleFactor(layer)));
|
| + return gfx::ToFlooredSize(
|
| + gfx::ScaleSize(size_in_dip, GetDeviceScaleFactor(layer)));
|
| }
|
|
|
| gfx::Rect ConvertRectToPixel(const Layer* layer,
|
|
|