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

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

Issue 2678263002: Plumb border radius through when computing clip visual rects. (Closed)
Patch Set: none Created 3 years, 10 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 dfcc4030024fa446a91108c108c02a03e2dad221..f2e106bf825a08e3a09db0ab7131ffb9d3746b90 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
@@ -83,12 +83,14 @@ void PaintPropertyTreeBuilderTest::TearDown() {
source.moveBy((sourceLayoutObject)->paintOffset()); \
const auto& contentsProperties = \
*(ancestorLayoutObject)->paintProperties()->contentsProperties(); \
- LayoutRect actual = \
- LayoutRect(geometryMapper.sourceToDestinationVisualRect( \
- FloatRect(source), *(sourceLayoutObject) \
- ->paintProperties() \
- ->localBorderBoxProperties(), \
- contentsProperties)); \
+ LayoutRect actual = LayoutRect( \
+ geometryMapper \
+ .sourceToDestinationVisualRect(FloatRect(source), \
+ *(sourceLayoutObject) \
+ ->paintProperties() \
+ ->localBorderBoxProperties(), \
+ contentsProperties) \
+ .rect()); \
actual.moveBy(-(ancestorLayoutObject)->paintOffset()); \
EXPECT_EQ(expected, actual) \
<< "GeometryMapper: expected: " << expected.toString() \

Powered by Google App Engine
This is Rietveld 408576698