Index: cc/layer_tree_host_impl_unittest.cc |
diff --git a/cc/layer_tree_host_impl_unittest.cc b/cc/layer_tree_host_impl_unittest.cc |
index 5b362fe29427a6992f7b9e979d7a307a4fe59d8f..5605cbba561726e05c0e1245cbdcd9b8204ffcbd 100644 |
--- a/cc/layer_tree_host_impl_unittest.cc |
+++ b/cc/layer_tree_host_impl_unittest.cc |
@@ -487,7 +487,7 @@ TEST_P(LayerTreeHostImplTest, maxScrollOffsetChangedByDeviceScaleFactor) |
float deviceScaleFactor = 2; |
gfx::Size layoutViewport(25, 25); |
- gfx::Size deviceViewport(gfx::ToFlooredSize(layoutViewport.Scale(deviceScaleFactor))); |
+ gfx::Size deviceViewport(gfx::ToFlooredSize(gfx::ScaleSize(layoutViewport, deviceScaleFactor))); |
m_hostImpl->setViewportSize(layoutViewport, deviceViewport); |
m_hostImpl->setDeviceScaleFactor(deviceScaleFactor); |
EXPECT_EQ(m_hostImpl->rootLayer()->maxScrollOffset(), gfx::Vector2d(25, 25)); |