| OLD | NEW |
| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 inline void forEachInterpolation(const T& callback) { m_interpolationEffect-
>forEachInterpolation(callback); } | 112 inline void forEachInterpolation(const T& callback) { m_interpolationEffect-
>forEachInterpolation(callback); } |
| 113 | 113 |
| 114 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector&
keyframes) { return normalizedKeyframes(keyframes); } | 114 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector&
keyframes) { return normalizedKeyframes(keyframes); } |
| 115 | 115 |
| 116 bool affects(PropertyHandle property) const override | 116 bool affects(PropertyHandle property) const override |
| 117 { | 117 { |
| 118 ensureKeyframeGroups(); | 118 ensureKeyframeGroups(); |
| 119 return m_keyframeGroups->contains(property); | 119 return m_keyframeGroups->contains(property); |
| 120 } | 120 } |
| 121 | 121 |
| 122 virtual bool isTransformRelatedEffect() const override; |
| 123 |
| 122 protected: | 124 protected: |
| 123 KeyframeEffectModelBase(PassRefPtrWillBeRawPtr<TimingFunction> neutralKeyfra
meEasing) | 125 KeyframeEffectModelBase(PassRefPtrWillBeRawPtr<TimingFunction> neutralKeyfra
meEasing) |
| 124 : m_neutralKeyframeEasing(neutralKeyframeEasing) | 126 : m_neutralKeyframeEasing(neutralKeyframeEasing) |
| 125 { | 127 { |
| 126 } | 128 } |
| 127 | 129 |
| 128 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes); | 130 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes); |
| 129 | 131 |
| 130 // Lazily computes the groups of property-specific keyframes. | 132 // Lazily computes the groups of property-specific keyframes. |
| 131 void ensureKeyframeGroups() const; | 133 void ensureKeyframeGroups() const; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 205 |
| 204 template <> | 206 template <> |
| 205 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr
ameEffectModel() const { return true; } | 207 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr
ameEffectModel() const { return true; } |
| 206 | 208 |
| 207 template <> | 209 template <> |
| 208 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c
onst { return true; } | 210 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c
onst { return true; } |
| 209 | 211 |
| 210 } // namespace blink | 212 } // namespace blink |
| 211 | 213 |
| 212 #endif // KeyframeEffectModel_h | 214 #endif // KeyframeEffectModel_h |
| OLD | NEW |