| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 { | 97 { |
| 98 ensureKeyframeGroups(); | 98 ensureKeyframeGroups(); |
| 99 return m_hasSyntheticKeyframes; | 99 return m_hasSyntheticKeyframes; |
| 100 } | 100 } |
| 101 | 101 |
| 102 DECLARE_VIRTUAL_TRACE(); | 102 DECLARE_VIRTUAL_TRACE(); |
| 103 | 103 |
| 104 // FIXME: This is a hack used to resolve CSSValues to AnimatableValues while
we have a valid handle on an element. | 104 // FIXME: This is a hack used to resolve CSSValues to AnimatableValues while
we have a valid handle on an element. |
| 105 // This should be removed once AnimatableValues are obsolete. | 105 // This should be removed once AnimatableValues are obsolete. |
| 106 void forceConversionsToAnimatableValues(Element&, const LayoutStyle* baseSty
le); | 106 void forceConversionsToAnimatableValues(Element&, const LayoutStyle* baseSty
le); |
| 107 void updateNeutralKeyframeAnimatableValues(CSSPropertyID, PassRefPtrWillBeRa
wPtr<AnimatableValue>); | 107 bool updateNeutralKeyframeAnimatableValues(CSSPropertyID, PassRefPtrWillBeRa
wPtr<AnimatableValue>); |
| 108 | 108 |
| 109 template<typename T> | 109 template<typename T> |
| 110 inline void forEachInterpolation(const T& callback) { m_interpolationEffect-
>forEachInterpolation(callback); } | 110 inline void forEachInterpolation(const T& callback) { m_interpolationEffect-
>forEachInterpolation(callback); } |
| 111 | 111 |
| 112 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector&
keyframes) { return normalizedKeyframes(keyframes); } | 112 static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector&
keyframes) { return normalizedKeyframes(keyframes); } |
| 113 | 113 |
| 114 bool affects(CSSPropertyID property) const override | 114 bool affects(CSSPropertyID property) const override |
| 115 { | 115 { |
| 116 ensureKeyframeGroups(); | 116 ensureKeyframeGroups(); |
| 117 return m_keyframeGroups->contains(property); | 117 return m_keyframeGroups->contains(property); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 template <> | 202 template <> |
| 203 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr
ameEffectModel() const { return true; } | 203 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr
ameEffectModel() const { return true; } |
| 204 | 204 |
| 205 template <> | 205 template <> |
| 206 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c
onst { return true; } | 206 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c
onst { return true; } |
| 207 | 207 |
| 208 } // namespace blink | 208 } // namespace blink |
| 209 | 209 |
| 210 #endif // KeyframeEffectModel_h | 210 #endif // KeyframeEffectModel_h |
| OLD | NEW |