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

Unified Diff: third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (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 b8d387788dec4cb7ddff50cb383a739dc890c4b3..c3343d1a9adc407b766f462073a6799e9c049978 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp
@@ -147,10 +147,10 @@ KeyframeEffectModelBase::normalizedKeyframes(const KeyframeVector& keyframes) {
result.back()->setOffset(1);
if (result.size() > 1 && isNull(result[0]->offset()))
- result.first()->setOffset(0);
+ result.front()->setOffset(0);
size_t lastIndex = 0;
- lastOffset = result.first()->offset();
+ lastOffset = result.front()->offset();
for (size_t i = 1; i < result.size(); ++i) {
double offset = result[i]->offset();
if (!isNull(offset)) {
@@ -301,8 +301,8 @@ bool KeyframeEffectModelBase::PropertySpecificKeyframeGroup::
bool addedSyntheticKeyframe = false;
- if (m_keyframes.first()->offset() != 0.0) {
- m_keyframes.insert(0, m_keyframes.first()->neutralKeyframe(
+ if (m_keyframes.front()->offset() != 0.0) {
+ m_keyframes.insert(0, m_keyframes.front()->neutralKeyframe(
0, std::move(zeroOffsetEasing)));
addedSyntheticKeyframe = true;
}

Powered by Google App Engine
This is Rietveld 408576698