| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 class AnimationControllerPrivate { | 58 class AnimationControllerPrivate { |
| 59 WTF_MAKE_NONCOPYABLE(AnimationControllerPrivate); WTF_MAKE_FAST_ALLOCATED; | 59 WTF_MAKE_NONCOPYABLE(AnimationControllerPrivate); WTF_MAKE_FAST_ALLOCATED; |
| 60 public: | 60 public: |
| 61 AnimationControllerPrivate(Frame*); | 61 AnimationControllerPrivate(Frame*); |
| 62 ~AnimationControllerPrivate(); | 62 ~AnimationControllerPrivate(); |
| 63 | 63 |
| 64 void updateAnimations(double& timeToNextService, double& timeToNextEvent, Se
tNeedsStyleRecalc callSetNeedsStyleRecalc = DoNotCallSetNeedsStyleRecalc); | 64 void updateAnimations(double& timeToNextService, double& timeToNextEvent, Se
tNeedsStyleRecalc callSetNeedsStyleRecalc = DoNotCallSetNeedsStyleRecalc); |
| 65 void scheduleService(); | 65 void scheduleService(); |
| 66 | 66 |
| 67 PassRefPtr<CompositeAnimation> accessCompositeAnimation(RenderObject*); | 67 PassRefPtr<CompositeAnimation> accessCompositeAnimation(RenderObject&); |
| 68 bool clear(RenderObject*); | 68 bool clear(RenderObject*); |
| 69 | 69 |
| 70 void updateStyleIfNeededDispatcherFired(Timer<AnimationControllerPrivate>*); | 70 void updateStyleIfNeededDispatcherFired(Timer<AnimationControllerPrivate>*); |
| 71 void startUpdateStyleIfNeededDispatcher(); | 71 void startUpdateStyleIfNeededDispatcher(); |
| 72 void addEventToDispatch(PassRefPtr<Element> element, const AtomicString& eve
ntType, const String& name, double elapsedTime); | 72 void addEventToDispatch(PassRefPtr<Element> element, const AtomicString& eve
ntType, const String& name, double elapsedTime); |
| 73 void addNodeChangeToDispatch(PassRefPtr<Node>); | 73 void addNodeChangeToDispatch(PassRefPtr<Node>); |
| 74 | 74 |
| 75 bool hasAnimations() const { return !m_compositeAnimations.isEmpty(); } | 75 bool hasAnimations() const { return !m_compositeAnimations.isEmpty(); } |
| 76 | 76 |
| 77 void serviceAnimations(); | 77 void serviceAnimations(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 91 void receivedStartTimeResponse(double); | 91 void receivedStartTimeResponse(double); |
| 92 | 92 |
| 93 void addToAnimationsWaitingForStyle(AnimationBase*); | 93 void addToAnimationsWaitingForStyle(AnimationBase*); |
| 94 void removeFromAnimationsWaitingForStyle(AnimationBase*); | 94 void removeFromAnimationsWaitingForStyle(AnimationBase*); |
| 95 | 95 |
| 96 void addToAnimationsWaitingForStartTimeResponse(AnimationBase*, bool willGet
Response); | 96 void addToAnimationsWaitingForStartTimeResponse(AnimationBase*, bool willGet
Response); |
| 97 void removeFromAnimationsWaitingForStartTimeResponse(AnimationBase*); | 97 void removeFromAnimationsWaitingForStartTimeResponse(AnimationBase*); |
| 98 | 98 |
| 99 void animationWillBeRemoved(AnimationBase*); | 99 void animationWillBeRemoved(AnimationBase*); |
| 100 | 100 |
| 101 void scheduleServiceForRenderer(RenderObject*); | 101 void scheduleServiceForRenderer(RenderObject&); |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 void animationTimerFired(Timer<AnimationControllerPrivate>*); | 104 void animationTimerFired(Timer<AnimationControllerPrivate>*); |
| 105 | 105 |
| 106 void scheduleService(double timeToNextService, double timeToNextEvent); | 106 void scheduleService(double timeToNextService, double timeToNextEvent); |
| 107 | 107 |
| 108 void styleAvailable(); | 108 void styleAvailable(); |
| 109 void fireEventsAndUpdateStyle(); | 109 void fireEventsAndUpdateStyle(); |
| 110 void startTimeResponse(double t); | 110 void startTimeResponse(double t); |
| 111 | 111 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 131 | 131 |
| 132 typedef HashSet<RefPtr<AnimationBase> > WaitingAnimationsSet; | 132 typedef HashSet<RefPtr<AnimationBase> > WaitingAnimationsSet; |
| 133 WaitingAnimationsSet m_animationsWaitingForStyle; | 133 WaitingAnimationsSet m_animationsWaitingForStyle; |
| 134 WaitingAnimationsSet m_animationsWaitingForStartTimeResponse; | 134 WaitingAnimationsSet m_animationsWaitingForStartTimeResponse; |
| 135 WaitingAnimationsSet m_animationsWaitingForAsyncStartNotification; | 135 WaitingAnimationsSet m_animationsWaitingForAsyncStartNotification; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace WebCore | 138 } // namespace WebCore |
| 139 | 139 |
| 140 #endif // AnimationControllerPrivate_h | 140 #endif // AnimationControllerPrivate_h |
| OLD | NEW |