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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.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/svg/SVGFEColorMatrixElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.cpp
index 6bc8baf63184176d14f97cc43753afbae51b691d..05eeb530063a2a230bdfc50b0c4dda381e59f111 100644
--- a/third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.cpp
@@ -29,11 +29,12 @@ template <>
const SVGEnumerationStringEntries& getStaticStringEntries<ColorMatrixType>() {
DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ());
if (entries.isEmpty()) {
- entries.append(std::make_pair(FECOLORMATRIX_TYPE_MATRIX, "matrix"));
- entries.append(std::make_pair(FECOLORMATRIX_TYPE_SATURATE, "saturate"));
- entries.append(std::make_pair(FECOLORMATRIX_TYPE_HUEROTATE, "hueRotate"));
- entries.append(std::make_pair(FECOLORMATRIX_TYPE_LUMINANCETOALPHA,
- "luminanceToAlpha"));
+ entries.push_back(std::make_pair(FECOLORMATRIX_TYPE_MATRIX, "matrix"));
+ entries.push_back(std::make_pair(FECOLORMATRIX_TYPE_SATURATE, "saturate"));
+ entries.push_back(
+ std::make_pair(FECOLORMATRIX_TYPE_HUEROTATE, "hueRotate"));
+ entries.push_back(std::make_pair(FECOLORMATRIX_TYPE_LUMINANCETOALPHA,
+ "luminanceToAlpha"));
}
return entries;
}
@@ -101,7 +102,7 @@ FilterEffect* SVGFEColorMatrixElement::build(SVGFilterBuilder* filterBuilder,
Vector<float> filterValues = m_values->currentValue()->toFloatVector();
FilterEffect* effect =
FEColorMatrix::create(filter, filterType, filterValues);
- effect->inputEffects().append(input1);
+ effect->inputEffects().push_back(input1);
return effect;
}

Powered by Google App Engine
This is Rietveld 408576698