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

Unified Diff: third_party/WebKit/Source/core/animation/KeyframeEffectModel.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/animation/KeyframeEffectModel.cpp
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp b/third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp
index 82a0c36682427806db2927241c5cbc6f612e478e..b8d387788dec4cb7ddff50cb383a739dc890c4b3 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp
@@ -143,8 +143,8 @@ KeyframeEffectModelBase::normalizedKeyframes(const KeyframeVector& keyframes) {
if (result.isEmpty())
return result;
- if (isNull(result.last()->offset()))
- result.last()->setOffset(1);
+ if (isNull(result.back()->offset()))
+ result.back()->setOffset(1);
if (result.size() > 1 && isNull(result[0]->offset()))
result.first()->setOffset(0);
@@ -272,7 +272,7 @@ Keyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(
void KeyframeEffectModelBase::PropertySpecificKeyframeGroup::appendKeyframe(
PassRefPtr<Keyframe::PropertySpecificKeyframe> keyframe) {
DCHECK(m_keyframes.isEmpty() ||
- m_keyframes.last()->offset() <= keyframe->offset());
+ m_keyframes.back()->offset() <= keyframe->offset());
m_keyframes.append(keyframe);
}
@@ -306,8 +306,8 @@ bool KeyframeEffectModelBase::PropertySpecificKeyframeGroup::
0, std::move(zeroOffsetEasing)));
addedSyntheticKeyframe = true;
}
- if (m_keyframes.last()->offset() != 1.0) {
- appendKeyframe(m_keyframes.last()->neutralKeyframe(1, nullptr));
+ if (m_keyframes.back()->offset() != 1.0) {
+ appendKeyframe(m_keyframes.back()->neutralKeyframe(1, nullptr));
addedSyntheticKeyframe = true;
}

Powered by Google App Engine
This is Rietveld 408576698