| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool isEmpty() const { return m_defaultStack.isEmpty() && m_cssAnimations.is
Empty() && m_players.isEmpty(); } | 72 bool isEmpty() const { return m_defaultStack.isEmpty() && m_cssAnimations.is
Empty() && m_players.isEmpty(); } |
| 73 | 73 |
| 74 void cancelAnimationOnCompositor(); | 74 void cancelAnimationOnCompositor(); |
| 75 | 75 |
| 76 void updateAnimationFlags(RenderStyle&); | 76 void updateAnimationFlags(RenderStyle&); |
| 77 void setAnimationStyleChange(bool animationStyleChange) { m_animationStyleCh
ange = animationStyleChange; } | 77 void setAnimationStyleChange(bool animationStyleChange) { m_animationStyleCh
ange = animationStyleChange; } |
| 78 | 78 |
| 79 void addAnimation(Animation* animation) { m_animations.append(animation); } | 79 void addAnimation(Animation* animation) { m_animations.append(animation); } |
| 80 void notifyAnimationDestroyed(Animation* animation) { m_animations.remove(m_
animations.find(animation)); } | 80 void notifyAnimationDestroyed(Animation* animation) { m_animations.remove(m_
animations.find(animation)); } |
| 81 | 81 |
| 82 void trace(Visitor*); | |
| 83 | |
| 84 private: | 82 private: |
| 85 bool isAnimationStyleChange() const { return m_animationStyleChange; } | 83 bool isAnimationStyleChange() const { return m_animationStyleChange; } |
| 86 | 84 |
| 87 AnimationStack m_defaultStack; | 85 AnimationStack m_defaultStack; |
| 88 CSSAnimations m_cssAnimations; | 86 CSSAnimations m_cssAnimations; |
| 89 AnimationPlayerCountedSet m_players; | 87 AnimationPlayerCountedSet m_players; |
| 90 bool m_animationStyleChange; | 88 bool m_animationStyleChange; |
| 91 | 89 |
| 92 // This is to avoid a reference cycle that keeps Elements alive. | 90 // This is to avoid a reference cycle that keeps Elements alive. |
| 93 Vector<Animation*> m_animations; | 91 Vector<Animation*> m_animations; |
| 94 | 92 |
| 95 // CSSAnimations checks if a style change is due to animation. | 93 // CSSAnimations checks if a style change is due to animation. |
| 96 friend class CSSAnimations; | 94 friend class CSSAnimations; |
| 97 }; | 95 }; |
| 98 | 96 |
| 99 } // namespace blink | 97 } // namespace blink |
| 100 | 98 |
| 101 #endif | 99 #endif |
| OLD | NEW |