Index: third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp |
index 3b15334881a06b408d22d3c5e17f08e164a85a38..cca8246e2dbafc6f1f282d5f9f28a72da9b03de3 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp |
@@ -95,13 +95,18 @@ const static float kTestEpsilon = 1e-6; |
inputRect, localPropertyTreeState, \ |
ancestorPropertyTreeState, success)); \ |
EXPECT_TRUE(success); \ |
- EXPECT_EQ( \ |
- expectedTransformToAncestor, \ |
- getPrecomputedDataForAncestor(ancestorPropertyTreeState) \ |
- .toAncestorTransforms.get(localPropertyTreeState.transform())); \ |
- EXPECT_EQ(expectedClipInAncestorSpace, \ |
- getPrecomputedDataForAncestor(ancestorPropertyTreeState) \ |
- .toAncestorClipRects.get(localPropertyTreeState.clip())); \ |
+ if (ancestorPropertyTreeState.transform() != \ |
+ localPropertyTreeState.transform()) { \ |
+ EXPECT_EQ( \ |
+ expectedTransformToAncestor, \ |
+ getPrecomputedDataForAncestor(ancestorPropertyTreeState) \ |
+ .toAncestorTransforms.get(localPropertyTreeState.transform())); \ |
+ } \ |
+ if (ancestorPropertyTreeState.clip() != localPropertyTreeState.clip()) { \ |
+ EXPECT_EQ(expectedClipInAncestorSpace, \ |
+ getPrecomputedDataForAncestor(ancestorPropertyTreeState) \ |
+ .toAncestorClipRects.get(localPropertyTreeState.clip())); \ |
+ } \ |
} while (false) |
TEST_F(GeometryMapperTest, Root) { |