Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp

Issue 2743733004: Revert of Reduce copying of local data structures in GeometryMapper and PaintLayerClipper. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a2c6de287b2910940ec08b3aca70e9526c64b7de..60a699f2a23db803f78673ff6f6dd353b1536d3b 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
@@ -83,11 +83,14 @@
source.moveBy((sourceLayoutObject)->paintOffset()); \
const auto& contentsProperties = \
*(ancestorLayoutObject)->paintProperties()->contentsProperties(); \
- FloatRect actualFloatRect(source); \
- geometryMapper->sourceToDestinationVisualRect( \
- *(sourceLayoutObject)->paintProperties()->localBorderBoxProperties(), \
- contentsProperties, actualFloatRect); \
- LayoutRect actual(actualFloatRect); \
+ LayoutRect actual = LayoutRect( \
+ geometryMapper \
+ ->sourceToDestinationVisualRect(FloatRect(source), \
+ *(sourceLayoutObject) \
+ ->paintProperties() \
+ ->localBorderBoxProperties(), \
+ contentsProperties) \
+ .rect()); \
actual.moveBy(-(ancestorLayoutObject)->paintOffset()); \
EXPECT_EQ(expected, actual) \
<< "GeometryMapper: expected: " << expected.toString() \
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp ('k') | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698