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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimationElement.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/SVGAnimationElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
index 10150aca88ddd3e29ce7239a127e4ce74d16d017..62bb324e7de2f23c1b518905e856f461384fb1fb 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
@@ -60,7 +60,7 @@ bool SVGAnimationElement::parseValues(const String& value,
goto fail;
} else {
parseList[i] = parseList[i].stripWhiteSpace();
- result.append(parseList[i]);
+ result.push_back(parseList[i]);
}
}
@@ -90,7 +90,7 @@ static bool parseKeyTimes(const String& string,
goto fail;
}
}
- result.append(time);
+ result.push_back(time);
}
return true;
fail:
@@ -129,7 +129,7 @@ static bool parseKeySplinesInternal(const String& string,
ptr++;
skipOptionalSVGSpaces(ptr, end);
- result.append(gfx::CubicBezier(posA, posB, posC, posD));
+ result.push_back(gfx::CubicBezier(posA, posB, posC, posD));
}
return ptr == end;
@@ -343,14 +343,14 @@ void SVGAnimationElement::calculateKeyTimesForCalcModePaced() {
Vector<float> keyTimesForPaced;
float totalDistance = 0;
- keyTimesForPaced.append(0);
+ keyTimesForPaced.push_back(0);
for (unsigned n = 0; n < valuesCount - 1; ++n) {
// Distance in any units
float distance = calculateDistance(m_values[n], m_values[n + 1]);
if (distance < 0)
return;
totalDistance += distance;
- keyTimesForPaced.append(distance);
+ keyTimesForPaced.push_back(distance);
}
if (!totalDistance)
return;

Powered by Google App Engine
This is Rietveld 408576698