OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class Node; | 43 class Node; |
44 class RenderObject; | 44 class RenderObject; |
45 class RenderStyle; | 45 class RenderStyle; |
46 | 46 |
47 class AnimationController { | 47 class AnimationController { |
48 public: | 48 public: |
49 AnimationController(Frame*); | 49 AnimationController(Frame*); |
50 ~AnimationController(); | 50 ~AnimationController(); |
51 | 51 |
52 void cancelAnimations(RenderObject*); | 52 void cancelAnimations(RenderObject*); |
53 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl
e); | 53 PassRefPtr<RenderStyle> updateAnimations(RenderObject&, RenderStyle& newStyl
e); |
54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); | 54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); |
55 | 55 |
56 // This is called when an accelerated animation or transition has actually s
tarted to animate. | 56 // This is called when an accelerated animation or transition has actually s
tarted to animate. |
57 void notifyAnimationStarted(RenderObject*, double startTime); | 57 void notifyAnimationStarted(RenderObject*, double startTime); |
58 | 58 |
59 void pauseAnimationsForTesting(double t); | 59 void pauseAnimationsForTesting(double t); |
60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t
esting | 60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t
esting |
61 | 61 |
62 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni
ngNow = true) const; | 62 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni
ngNow = true) const; |
63 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*) const; | 63 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*) const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 if (m_animationController) | 95 if (m_animationController) |
96 m_animationController->endAnimationUpdate(); | 96 m_animationController->endAnimationUpdate(); |
97 } | 97 } |
98 | 98 |
99 AnimationController* m_animationController; | 99 AnimationController* m_animationController; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace WebCore | 102 } // namespace WebCore |
103 | 103 |
104 #endif // AnimationController_h | 104 #endif // AnimationController_h |
OLD | NEW |