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

Side by Side Diff: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 keyframes.prepend(startKeyframe); 162 keyframes.prepend(startKeyframe);
163 } 163 }
164 RefPtr<StringKeyframe> endKeyframe = keyframes[keyframes.size() - 1]; 164 RefPtr<StringKeyframe> endKeyframe = keyframes[keyframes.size() - 1];
165 if (endKeyframe->offset() != 1) { 165 if (endKeyframe->offset() != 1) {
166 endKeyframe = StringKeyframe::create(); 166 endKeyframe = StringKeyframe::create();
167 endKeyframe->setOffset(1); 167 endKeyframe->setOffset(1);
168 endKeyframe->setEasing(defaultTimingFunction); 168 endKeyframe->setEasing(defaultTimingFunction);
169 keyframes.append(endKeyframe); 169 keyframes.append(endKeyframe);
170 } 170 }
171 DCHECK_GE(keyframes.size(), 2U); 171 DCHECK_GE(keyframes.size(), 2U);
172 DCHECK(!keyframes.first()->offset()); 172 DCHECK(!keyframes.front()->offset());
173 DCHECK_EQ(keyframes.back()->offset(), 1); 173 DCHECK_EQ(keyframes.back()->offset(), 1);
174 174
175 // This is used for use counting neutral keyframes running on the compositor. 175 // This is used for use counting neutral keyframes running on the compositor.
176 PropertySet allProperties; 176 PropertySet allProperties;
177 for (const auto& keyframe : keyframes) { 177 for (const auto& keyframe : keyframes) {
178 for (const auto& property : keyframe->properties()) 178 for (const auto& property : keyframe->properties())
179 allProperties.add(property.cssProperty()); 179 allProperties.add(property.cssProperty());
180 } 180 }
181 const PropertyHandleSet& startKeyframeProperties = 181 const PropertyHandleSet& startKeyframeProperties =
182 startKeyframe->properties(); 182 startKeyframe->properties();
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 return toShadowRoot(treeScope.rootNode()).host() == element; 1094 return toShadowRoot(treeScope.rootNode()).host() == element;
1095 } 1095 }
1096 1096
1097 DEFINE_TRACE(CSSAnimations) { 1097 DEFINE_TRACE(CSSAnimations) {
1098 visitor->trace(m_transitions); 1098 visitor->trace(m_transitions);
1099 visitor->trace(m_pendingUpdate); 1099 visitor->trace(m_pendingUpdate);
1100 visitor->trace(m_runningAnimations); 1100 visitor->trace(m_runningAnimations);
1101 } 1101 }
1102 1102
1103 } // namespace blink 1103 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698