| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 ensureKeyframeGroups(); | 103 ensureKeyframeGroups(); |
| 104 return m_hasSyntheticKeyframes; | 104 return m_hasSyntheticKeyframes; |
| 105 } | 105 } |
| 106 | 106 |
| 107 // FIXME: This is a hack used to resolve CSSValues to AnimatableValues while
we have a valid handle on an element. | 107 // FIXME: This is a hack used to resolve CSSValues to AnimatableValues while
we have a valid handle on an element. |
| 108 // This should be removed once AnimatableValues are obsolete. | 108 // This should be removed once AnimatableValues are obsolete. |
| 109 void forceConversionsToAnimatableValues(Element&, const ComputedStyle* baseS
tyle); | 109 void forceConversionsToAnimatableValues(Element&, const ComputedStyle* baseS
tyle); |
| 110 bool snapshotNeutralCompositorKeyframes(Element&, const ComputedStyle& oldSt
yle, const ComputedStyle& newStyle); | 110 bool snapshotNeutralCompositorKeyframes(Element&, const ComputedStyle& oldSt
yle, const ComputedStyle& newStyle); |
| 111 bool snapshotAllCompositorKeyframes(Element&, const ComputedStyle* baseStyle
); | 111 bool snapshotAllCompositorKeyframes(Element&, const ComputedStyle* baseStyle
); |
| 112 | 112 |
| 113 template<typename T> | |
| 114 inline void forEachInterpolation(const T& callback) { m_interpolationEffect.
forEachInterpolation(callback); } | |
| 115 | |
| 116 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector&
keyframes) { return normalizedKeyframes(keyframes); } | 113 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector&
keyframes) { return normalizedKeyframes(keyframes); } |
| 117 | 114 |
| 118 bool affects(PropertyHandle property) const override | 115 bool affects(PropertyHandle property) const override |
| 119 { | 116 { |
| 120 ensureKeyframeGroups(); | 117 ensureKeyframeGroups(); |
| 121 return m_keyframeGroups->contains(property); | 118 return m_keyframeGroups->contains(property); |
| 122 } | 119 } |
| 123 | 120 |
| 124 bool isTransformRelatedEffect() const override; | 121 bool isTransformRelatedEffect() const override; |
| 125 | 122 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 210 |
| 214 template <> | 211 template <> |
| 215 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr
ameEffectModel() const { return true; } | 212 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr
ameEffectModel() const { return true; } |
| 216 | 213 |
| 217 template <> | 214 template <> |
| 218 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c
onst { return true; } | 215 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c
onst { return true; } |
| 219 | 216 |
| 220 } // namespace blink | 217 } // namespace blink |
| 221 | 218 |
| 222 #endif // KeyframeEffectModel_h | 219 #endif // KeyframeEffectModel_h |
| OLD | NEW |