| Index: cc/occlusion_tracker_unittest.cc
|
| diff --git a/cc/occlusion_tracker_unittest.cc b/cc/occlusion_tracker_unittest.cc
|
| index babd9cd82f10761377766e94ab6936ee63757bdc..187ab21c7e8c39da71125bb6a7d509b9ce595ef5 100644
|
| --- a/cc/occlusion_tracker_unittest.cc
|
| +++ b/cc/occlusion_tracker_unittest.cc
|
| @@ -905,22 +905,22 @@ protected:
|
|
|
| EXPECT_TRUE(occlusion.occludedLayer(child, clippedLayerInChild));
|
| EXPECT_TRUE(occlusion.unoccludedLayerContentRect(child, clippedLayerInChild).IsEmpty());
|
| - clippedLayerInChild.Offset(-1, 0);
|
| + clippedLayerInChild += gfx::Vector2d(-1, 0);
|
| EXPECT_FALSE(occlusion.occludedLayer(child, clippedLayerInChild));
|
| EXPECT_FALSE(occlusion.unoccludedLayerContentRect(child, clippedLayerInChild).IsEmpty());
|
| - clippedLayerInChild.Offset(1, 0);
|
| - clippedLayerInChild.Offset(1, 0);
|
| + clippedLayerInChild += gfx::Vector2d(1, 0);
|
| + clippedLayerInChild += gfx::Vector2d(1, 0);
|
| EXPECT_FALSE(occlusion.occludedLayer(child, clippedLayerInChild));
|
| EXPECT_FALSE(occlusion.unoccludedLayerContentRect(child, clippedLayerInChild).IsEmpty());
|
| - clippedLayerInChild.Offset(-1, 0);
|
| - clippedLayerInChild.Offset(0, -1);
|
| + clippedLayerInChild += gfx::Vector2d(-1, 0);
|
| + clippedLayerInChild += gfx::Vector2d(0, -1);
|
| EXPECT_FALSE(occlusion.occludedLayer(child, clippedLayerInChild));
|
| EXPECT_FALSE(occlusion.unoccludedLayerContentRect(child, clippedLayerInChild).IsEmpty());
|
| - clippedLayerInChild.Offset(0, 1);
|
| - clippedLayerInChild.Offset(0, 1);
|
| + clippedLayerInChild += gfx::Vector2d(0, 1);
|
| + clippedLayerInChild += gfx::Vector2d(0, 1);
|
| EXPECT_FALSE(occlusion.occludedLayer(child, clippedLayerInChild));
|
| EXPECT_FALSE(occlusion.unoccludedLayerContentRect(child, clippedLayerInChild).IsEmpty());
|
| - clippedLayerInChild.Offset(0, -1);
|
| + clippedLayerInChild += gfx::Vector2d(0, -1);
|
|
|
| this->leaveContributingSurface(child, occlusion);
|
| this->enterLayer(parent, occlusion);
|
|
|