diff options
Diffstat (limited to 'Source/WebCore/dom/ScriptedAnimationController.h')
-rw-r--r-- | Source/WebCore/dom/ScriptedAnimationController.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/WebCore/dom/ScriptedAnimationController.h b/Source/WebCore/dom/ScriptedAnimationController.h index 7141968..f6f06a9 100644 --- a/Source/WebCore/dom/ScriptedAnimationController.h +++ b/Source/WebCore/dom/ScriptedAnimationController.h @@ -28,6 +28,9 @@ #if ENABLE(REQUEST_ANIMATION_FRAME) #include "DOMTimeStamp.h" +#if USE(REQUEST_ANIMATION_FRAME_TIMER) +#include "Timer.h" +#endif #include <wtf/Noncopyable.h> #include <wtf/PassOwnPtr.h> #include <wtf/RefPtr.h> @@ -36,7 +39,6 @@ namespace WebCore { class Document; -class Element; class RequestAnimationFrameCallback; class ScriptedAnimationController { @@ -49,7 +51,7 @@ public: typedef int CallbackId; - CallbackId registerCallback(PassRefPtr<RequestAnimationFrameCallback>, Element*); + CallbackId registerCallback(PassRefPtr<RequestAnimationFrameCallback>); void cancelCallback(CallbackId); void serviceScriptedAnimations(DOMTimeStamp); @@ -58,12 +60,21 @@ public: private: explicit ScriptedAnimationController(Document*); + typedef Vector<RefPtr<RequestAnimationFrameCallback> > CallbackList; CallbackList m_callbacks; Document* m_document; CallbackId m_nextCallbackId; int m_suspendCount; + + void scheduleAnimation(); + +#if USE(REQUEST_ANIMATION_FRAME_TIMER) + void animationTimerFired(Timer<ScriptedAnimationController>*); + Timer<ScriptedAnimationController> m_animationTimer; + double m_lastAnimationFrameTime; +#endif }; } |