Index: cc/layer_tree_host_common_unittest.cc |
diff --git a/cc/layer_tree_host_common_unittest.cc b/cc/layer_tree_host_common_unittest.cc |
index c37a9f422d2c1bac645e74f6deed32ab00502c28..29d25b32156e1de7ebf8be3624a80ac75f3690c5 100644 |
--- a/cc/layer_tree_host_common_unittest.cc |
+++ b/cc/layer_tree_host_common_unittest.cc |
@@ -3500,8 +3500,7 @@ TEST(LayerTreeHostCommonTest, verifyLayerTransformsInHighDPI) |
gfx::RectF childDrawRect = MathUtil::mapClippedRect(child->drawTransform(), childContentBounds); |
gfx::RectF childScreenSpaceRect = MathUtil::mapClippedRect(child->screenSpaceTransform(), childContentBounds); |
- gfx::RectF expectedChildDrawRect(gfx::PointF(), child->bounds()); |
- expectedChildDrawRect.Offset(child->position().x(), child->position().y()); |
+ gfx::RectF expectedChildDrawRect(child->position(), child->bounds()); |
expectedChildDrawRect.Scale(deviceScaleFactor); |
EXPECT_FLOAT_RECT_EQ(expectedChildDrawRect, childDrawRect); |
EXPECT_FLOAT_RECT_EQ(expectedChildDrawRect, childScreenSpaceRect); |