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

Unified Diff: third_party/WebKit/Source/core/style/FilterOperationsTest.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase Created 3 years, 11 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/style/FilterOperationsTest.cpp
diff --git a/third_party/WebKit/Source/core/style/FilterOperationsTest.cpp b/third_party/WebKit/Source/core/style/FilterOperationsTest.cpp
index 5deb7473cd1bbda747a53427d6cc6f2aac18103b..969d995763622b09c696dda782d1921252111f6c 100644
--- a/third_party/WebKit/Source/core/style/FilterOperationsTest.cpp
+++ b/third_party/WebKit/Source/core/style/FilterOperationsTest.cpp
@@ -38,7 +38,7 @@ TEST(FilterOperationsTest, mapRectNoFilter) {
TEST(FilterOperationsTest, mapRectBlur) {
FilterOperations ops;
- ops.operations().append(BlurFilterOperation::create(Length(20.0, Fixed)));
+ ops.operations().push_back(BlurFilterOperation::create(Length(20.0, Fixed)));
EXPECT_TRUE(ops.hasFilterThatMovesPixels());
EXPECT_EQ(IntRect(-57, -57, 124, 124),
enclosingIntRect(ops.mapRect(FloatRect(0, 0, 10, 10))));
@@ -46,7 +46,7 @@ TEST(FilterOperationsTest, mapRectBlur) {
TEST(FilterOperationsTest, mapRectDropShadow) {
FilterOperations ops;
- ops.operations().append(DropShadowFilterOperation::create(
+ ops.operations().push_back(DropShadowFilterOperation::create(
ShadowData(FloatPoint(3, 8), 20, 0, Normal, StyleColor(Color(1, 2, 3)))));
EXPECT_TRUE(ops.hasFilterThatMovesPixels());
EXPECT_EQ(IntRect(-54, -49, 124, 124),
@@ -55,7 +55,7 @@ TEST(FilterOperationsTest, mapRectDropShadow) {
TEST(FilterOperationsTest, mapRectBoxReflect) {
FilterOperations ops;
- ops.operations().append(BoxReflectFilterOperation::create(
+ ops.operations().push_back(BoxReflectFilterOperation::create(
BoxReflection(BoxReflection::VerticalReflection, 100)));
EXPECT_TRUE(ops.hasFilterThatMovesPixels());
@@ -67,9 +67,9 @@ TEST(FilterOperationsTest, mapRectDropShadowAndBoxReflect) {
// This is a case where the order of filter operations matters, and it's
// important that the bounds be filtered in the correct order.
FilterOperations ops;
- ops.operations().append(DropShadowFilterOperation::create(ShadowData(
+ ops.operations().push_back(DropShadowFilterOperation::create(ShadowData(
FloatPoint(100, 200), 0, 0, Normal, StyleColor(Color::black))));
- ops.operations().append(BoxReflectFilterOperation::create(
+ ops.operations().push_back(BoxReflectFilterOperation::create(
BoxReflection(BoxReflection::VerticalReflection, 50)));
EXPECT_TRUE(ops.hasFilterThatMovesPixels());
EXPECT_EQ(FloatRect(0, -160, 110, 370), ops.mapRect(FloatRect(0, 0, 10, 10)));
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/QuotesData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698