| Index: content/browser/renderer_host/dip_util.cc
|
| diff --git a/content/browser/renderer_host/dip_util.cc b/content/browser/renderer_host/dip_util.cc
|
| index 726241a87128bc5b4e3600964fe18753d402e634..575232c659b985d2fd9947f0f7fc66be7f8295f1 100644
|
| --- a/content/browser/renderer_host/dip_util.cc
|
| +++ b/content/browser/renderer_host/dip_util.cc
|
| @@ -36,7 +36,7 @@ gfx::Point ConvertPointToDIP(const RenderWidgetHostView* view,
|
| gfx::Size ConvertSizeToDIP(const RenderWidgetHostView* view,
|
| const gfx::Size& size_in_pixel) {
|
| return gfx::ToFlooredSize(
|
| - size_in_pixel.Scale(1.0f / GetScaleForView(view)));
|
| + gfx::ScaleSize(size_in_pixel, 1.0f / GetScaleForView(view)));
|
| }
|
|
|
| gfx::Rect ConvertRectToDIP(const RenderWidgetHostView* view,
|
| @@ -53,7 +53,8 @@ gfx::Point ConvertPointToPixel(const RenderWidgetHostView* view,
|
|
|
| gfx::Size ConvertSizeToPixel(const RenderWidgetHostView* view,
|
| const gfx::Size& size_in_dip) {
|
| - return gfx::ToFlooredSize(size_in_dip.Scale(GetScaleForView(view)));
|
| + return gfx::ToFlooredSize(
|
| + gfx::ScaleSize(size_in_dip, GetScaleForView(view)));
|
| }
|
|
|
| gfx::Rect ConvertRectToPixel(const RenderWidgetHostView* view,
|
|
|