| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 void restartAnimationOnCompositor(); | 68 void restartAnimationOnCompositor(); |
| 69 | 69 |
| 70 void updateAnimationFlags(ComputedStyle&); | 70 void updateAnimationFlags(ComputedStyle&); |
| 71 void setAnimationStyleChange(bool animationStyleChange) { m_animationStyleCh
ange = animationStyleChange; } | 71 void setAnimationStyleChange(bool animationStyleChange) { m_animationStyleCh
ange = animationStyleChange; } |
| 72 | 72 |
| 73 const ComputedStyle* baseComputedStyle() const; | 73 const ComputedStyle* baseComputedStyle() const; |
| 74 void updateBaseComputedStyle(const ComputedStyle*); | 74 void updateBaseComputedStyle(const ComputedStyle*); |
| 75 void clearBaseComputedStyle(); | 75 void clearBaseComputedStyle(); |
| 76 | 76 |
| 77 #if !ENABLE(OILPAN) |
| 78 void addEffect(KeyframeEffect* effect) { m_effects.add(effect); } |
| 79 void dispose(); |
| 80 #endif |
| 81 |
| 77 DECLARE_TRACE(); | 82 DECLARE_TRACE(); |
| 78 | 83 |
| 79 private: | 84 private: |
| 80 bool isAnimationStyleChange() const; | 85 bool isAnimationStyleChange() const; |
| 81 | 86 |
| 82 AnimationStack m_defaultStack; | 87 AnimationStack m_defaultStack; |
| 83 CSSAnimations m_cssAnimations; | 88 CSSAnimations m_cssAnimations; |
| 84 AnimationCountedSet m_animations; | 89 AnimationCountedSet m_animations; |
| 85 bool m_animationStyleChange; | 90 bool m_animationStyleChange; |
| 86 RefPtr<ComputedStyle> m_baseComputedStyle; | 91 RefPtr<ComputedStyle> m_baseComputedStyle; |
| 87 | 92 |
| 93 #if !ENABLE(OILPAN) |
| 94 // TODO(oilpan): This is to avoid a reference cycle that keeps Elements |
| 95 // alive and won't be needed once the Node hierarchy becomes traceable. |
| 96 HeapHashSet<WeakMember<KeyframeEffect>> m_effects; |
| 97 #endif |
| 98 |
| 88 // CSSAnimations and DeferredLegacyStyleInterpolation checks if a style chan
ge is due to animation. | 99 // CSSAnimations and DeferredLegacyStyleInterpolation checks if a style chan
ge is due to animation. |
| 89 friend class CSSAnimations; | 100 friend class CSSAnimations; |
| 90 friend class DeferredLegacyStyleInterpolation; | 101 friend class DeferredLegacyStyleInterpolation; |
| 91 }; | 102 }; |
| 92 | 103 |
| 93 } // namespace blink | 104 } // namespace blink |
| 94 | 105 |
| 95 #endif // ElementAnimations_h | 106 #endif // ElementAnimations_h |
| OLD | NEW |