| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |