| Index: ui/aura/test/test_screen.cc
|
| diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc
|
| index f27154e793c0175416095f044fcab4d54e9fed8f..cdeb093eda082e57cb35f87b2e1679741bbd3709 100644
|
| --- a/ui/aura/test/test_screen.cc
|
| +++ b/ui/aura/test/test_screen.cc
|
| @@ -75,7 +75,7 @@ void TestScreen::SetUIScale(float ui_scale) {
|
| ui_scale_ = ui_scale;
|
| gfx::Rect bounds_in_pixel(display_.GetSizeInPixel());
|
| gfx::Rect new_bounds = gfx::ToNearestRect(
|
| - gfx::ScaleRect(bounds_in_pixel, 1.0f / ui_scale));
|
| + gfx::ScaleRect(gfx::RectF(bounds_in_pixel), 1.0f / ui_scale));
|
| display_.SetScaleAndBounds(display_.device_scale_factor(), new_bounds);
|
| host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform());
|
| }
|
|
|