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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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 ea053da403cf4d8b32137d2a0be8ef39f76f2d37..cb2e4aa0d60746e15fca2838df3383cd53fa26cb 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
@@ -86,7 +86,7 @@ static bool parseKeyTimes(const String& string,
if (!n) {
if (time)
goto fail;
- } else if (time < result.last()) {
+ } else if (time < result.back()) {
goto fail;
}
}
@@ -568,7 +568,7 @@ void SVGAnimationElement::startedActiveInterval() {
fastHasAttribute(SVGNames::keyPointsAttr) ||
(m_values.size() == m_keyTimes.size())) &&
(calcMode == CalcModeDiscrete || !m_keyTimes.size() ||
- m_keyTimes.last() == 1) &&
+ m_keyTimes.back() == 1) &&
(calcMode != CalcModeSpline ||
((m_keySplines.size() &&
(m_keySplines.size() == m_values.size() - 1)) ||
@@ -576,7 +576,7 @@ void SVGAnimationElement::startedActiveInterval() {
(!fastHasAttribute(SVGNames::keyPointsAttr) ||
(m_keyTimes.size() > 1 && m_keyTimes.size() == m_keyPoints.size()));
if (m_animationValid)
- m_animationValid = calculateToAtEndOfDurationValue(m_values.last());
+ m_animationValid = calculateToAtEndOfDurationValue(m_values.back());
if (calcMode == CalcModePaced && m_animationValid)
calculateKeyTimesForCalcModePaced();
} else if (animationMode == PathAnimation) {
« no previous file with comments | « third_party/WebKit/Source/core/style/QuotesData.cpp ('k') | third_party/WebKit/Source/core/svg/SVGEnumeration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698