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

Unified Diff: third_party/WebKit/Source/platform/transforms/TransformOperations.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h 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/platform/transforms/TransformOperations.cpp
diff --git a/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp b/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp
index b94746c22d9ead47246478aa31608f4e6280697b..8473f4923324630174faa3a92ccaf6e9060ff6e8 100644
--- a/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp
+++ b/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp
@@ -33,7 +33,7 @@ namespace blink {
TransformOperations::TransformOperations(bool makeIdentity) {
if (makeIdentity)
- m_operations.append(IdentityTransformOperation::create());
+ m_operations.push_back(IdentityTransformOperation::create());
}
bool TransformOperations::operator==(const TransformOperations& o) const {
@@ -82,16 +82,16 @@ TransformOperations TransformOperations::blendByMatchingOperations(
: (fromOperation ? fromOperation->blend(0, progress, true)
: nullptr);
if (blendedOperation)
- result.operations().append(blendedOperation);
+ result.operations().push_back(blendedOperation);
else {
RefPtr<TransformOperation> identityOperation =
IdentityTransformOperation::create();
if (progress > 0.5)
- result.operations().append(toOperation ? toOperation
- : identityOperation);
+ result.operations().push_back(toOperation ? toOperation
+ : identityOperation);
else
- result.operations().append(fromOperation ? fromOperation
- : identityOperation);
+ result.operations().push_back(fromOperation ? fromOperation
+ : identityOperation);
}
}
@@ -127,7 +127,8 @@ TransformOperations TransformOperations::blend(const TransformOperations& from,
return blendByMatchingOperations(from, progress);
TransformOperations result;
- result.operations().append(blendByUsingMatrixInterpolation(from, progress));
+ result.operations().push_back(
+ blendByUsingMatrixInterpolation(from, progress));
return result;
}
@@ -431,7 +432,7 @@ TransformOperations TransformOperations::add(
TransformOperations TransformOperations::zoom(double factor) const {
TransformOperations result;
for (auto& transformOperation : m_operations)
- result.m_operations.append(transformOperation->zoom(factor));
+ result.m_operations.push_back(transformOperation->zoom(factor));
return result;
}

Powered by Google App Engine
This is Rietveld 408576698