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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FilterOperationsTest.cpp

Issue 1870793004: Move common logic between BoxReflectFilterOperation and FEBoxReflect into BoxReflection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-filter-outsets-2
Patch Set: merge with master Created 4 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/platform/graphics/filters/FilterOperationsTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FilterOperationsTest.cpp b/third_party/WebKit/Source/platform/graphics/filters/FilterOperationsTest.cpp
index a51acd76a3b1c580f57e5d675134bf4951736e35..ecb4268d2900615ef701b82061ef489f3bbfaa0f 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FilterOperationsTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FilterOperationsTest.cpp
@@ -57,7 +57,8 @@ TEST(FilterOperationsTest, mapRectDropShadow)
TEST(FilterOperationsTest, mapRectBoxReflect)
{
FilterOperations ops;
- ops.operations().append(BoxReflectFilterOperation::create(VerticalReflection, 100));
+ ops.operations().append(BoxReflectFilterOperation::create(
+ BoxReflection(BoxReflection::VerticalReflection, 100)));
EXPECT_TRUE(ops.hasFilterThatMovesPixels());
// original IntRect(0, 0, 10, 10) + reflection IntRect(90, 90, 10, 10)
@@ -70,7 +71,8 @@ TEST(FilterOperationsTest, mapRectDropShadowAndBoxReflect)
// important that the bounds be filtered in the correct order.
FilterOperations ops;
ops.operations().append(DropShadowFilterOperation::create(IntPoint(100, 200), 0, Color::black));
- ops.operations().append(BoxReflectFilterOperation::create(VerticalReflection, 50));
+ ops.operations().append(BoxReflectFilterOperation::create(
+ BoxReflection(BoxReflection::VerticalReflection, 50)));
EXPECT_TRUE(ops.hasFilterThatMovesPixels());
EXPECT_EQ(FloatRect(0, -160, 110, 370),
ops.mapRect(FloatRect(0, 0, 10, 10)));

Powered by Google App Engine
This is Rietveld 408576698