Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
index 60a699f2a23db803f78673ff6f6dd353b1536d3b..a2c6de287b2910940ec08b3aca70e9526c64b7de 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
@@ -83,14 +83,11 @@ void PaintPropertyTreeBuilderTest::TearDown() { |
source.moveBy((sourceLayoutObject)->paintOffset()); \ |
const auto& contentsProperties = \ |
*(ancestorLayoutObject)->paintProperties()->contentsProperties(); \ |
- LayoutRect actual = LayoutRect( \ |
- geometryMapper \ |
- ->sourceToDestinationVisualRect(FloatRect(source), \ |
- *(sourceLayoutObject) \ |
- ->paintProperties() \ |
- ->localBorderBoxProperties(), \ |
- contentsProperties) \ |
- .rect()); \ |
+ FloatRect actualFloatRect(source); \ |
+ geometryMapper->sourceToDestinationVisualRect( \ |
+ *(sourceLayoutObject)->paintProperties()->localBorderBoxProperties(), \ |
+ contentsProperties, actualFloatRect); \ |
+ LayoutRect actual(actualFloatRect); \ |
actual.moveBy(-(ancestorLayoutObject)->paintOffset()); \ |
EXPECT_EQ(expected, actual) \ |
<< "GeometryMapper: expected: " << expected.toString() \ |