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

Side by Side Diff: third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSAnimationUpdate_h 5 #ifndef CSSAnimationUpdate_h
6 #define CSSAnimationUpdate_h 6 #define CSSAnimationUpdate_h
7 7
8 #include "core/animation/EffectStack.h" 8 #include "core/animation/EffectStack.h"
9 #include "core/animation/InertEffect.h" 9 #include "core/animation/InertEffect.h"
10 #include "core/animation/Interpolation.h" 10 #include "core/animation/Interpolation.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 newTransition.property = property; 175 newTransition.property = property;
176 newTransition.from = std::move(from); 176 newTransition.from = std::move(from);
177 newTransition.to = std::move(to); 177 newTransition.to = std::move(to);
178 newTransition.reversingAdjustedStartValue = 178 newTransition.reversingAdjustedStartValue =
179 std::move(reversingAdjustedStartValue); 179 std::move(reversingAdjustedStartValue);
180 newTransition.reversingShorteningFactor = reversingShorteningFactor; 180 newTransition.reversingShorteningFactor = reversingShorteningFactor;
181 newTransition.effect = &effect; 181 newTransition.effect = &effect;
182 m_newTransitions.set(property, newTransition); 182 m_newTransitions.set(property, newTransition);
183 } 183 }
184 void unstartTransition(const PropertyHandle& property) { 184 void unstartTransition(const PropertyHandle& property) {
185 m_newTransitions.remove(property); 185 m_newTransitions.erase(property);
186 } 186 }
187 bool isCancelledTransition(const PropertyHandle& property) const { 187 bool isCancelledTransition(const PropertyHandle& property) const {
188 return m_cancelledTransitions.contains(property); 188 return m_cancelledTransitions.contains(property);
189 } 189 }
190 void cancelTransition(const PropertyHandle& property) { 190 void cancelTransition(const PropertyHandle& property) {
191 m_cancelledTransitions.insert(property); 191 m_cancelledTransitions.insert(property);
192 } 192 }
193 void finishTransition(const PropertyHandle& property) { 193 void finishTransition(const PropertyHandle& property) {
194 m_finishedTransitions.insert(property); 194 m_finishedTransitions.insert(property);
195 } 195 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 ActiveInterpolationsMap m_activeInterpolationsForAnimations; 301 ActiveInterpolationsMap m_activeInterpolationsForAnimations;
302 ActiveInterpolationsMap m_activeInterpolationsForCustomTransitions; 302 ActiveInterpolationsMap m_activeInterpolationsForCustomTransitions;
303 ActiveInterpolationsMap m_activeInterpolationsForStandardTransitions; 303 ActiveInterpolationsMap m_activeInterpolationsForStandardTransitions;
304 304
305 friend class PendingAnimationUpdate; 305 friend class PendingAnimationUpdate;
306 }; 306 };
307 307
308 } // namespace blink 308 } // namespace blink
309 309
310 #endif 310 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698