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

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

Issue 2802443002: Compute rounded-ness of visual rects (Closed)
Patch Set: none Created 3 years, 8 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 e494270eb087c9fbba1e550f032fe40ce3a3d759..71e354f61f1dd9c07f1c24747cbebec44b0ad314 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
@@ -82,11 +82,11 @@ void PaintPropertyTreeBuilderTest::TearDown() {
source.moveBy((sourceObject)->paintOffset()); \
const auto& contentsProperties = \
*(ancestorObject)->contentsProperties(); \
- FloatRect actualFloatRect(source); \
+ FloatClipRect actualFloatRect((FloatRect(source))); \
GeometryMapper::sourceToDestinationVisualRect( \
*(sourceObject)->localBorderBoxProperties(), contentsProperties, \
actualFloatRect); \
- LayoutRect actual(actualFloatRect); \
+ LayoutRect actual(actualFloatRect.rect()); \
actual.moveBy(-(ancestorObject)->paintOffset()); \
SCOPED_TRACE("GeometryMapper: "); \
EXPECT_EQ(expected, actual); \

Powered by Google App Engine
This is Rietveld 408576698