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

Unified Diff: third_party/WebKit/Source/core/layout/VisualRectMappingTest.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/layout/VisualRectMappingTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp b/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
index c551b2be078e35034a2f87be54c6f12c04a09879..f9de13e1187cd19bbeddbae5e52d014a85a96330 100644
--- a/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
+++ b/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
@@ -41,7 +41,7 @@ class VisualRectMappingTest : public RenderingTest {
if (slowMapRect.isEmpty() && object.visualRect().isEmpty())
return;
- FloatRect geometryMapperRect(localRect);
+ FloatClipRect geometryMapperRect((FloatRect(localRect)));
if (object.paintProperties() || object.localBorderBoxProperties()) {
geometryMapperRect.moveBy(FloatPoint(object.paintOffset()));
GeometryMapper::sourceToDestinationVisualRect(
@@ -55,15 +55,15 @@ class VisualRectMappingTest : public RenderingTest {
if (adjustForBacking && ancestor.isPaintInvalidationContainer()) {
PaintLayer::mapRectInPaintInvalidationContainerToBacking(ancestor,
slowMapRect);
- LayoutRect temp(geometryMapperRect);
+ LayoutRect temp(geometryMapperRect.rect());
PaintLayer::mapRectInPaintInvalidationContainerToBacking(ancestor, temp);
- geometryMapperRect = FloatRect(temp);
+ geometryMapperRect.setRect(FloatRect(temp));
}
EXPECT_TRUE(enclosingIntRect(slowMapRect)
.contains(enclosingIntRect(expectedVisualRect)));
if (object.paintProperties()) {
- EXPECT_TRUE(enclosingIntRect(geometryMapperRect)
+ EXPECT_TRUE(enclosingIntRect(geometryMapperRect.rect())
.contains(enclosingIntRect(expectedVisualRect)));
}
}

Powered by Google App Engine
This is Rietveld 408576698