Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / page / PageAnimator.h
index aebc35d..154d35b 100644 (file)
@@ -5,15 +5,17 @@
 #ifndef PageAnimator_h
 #define PageAnimator_h
 
+#include "platform/heap/Handle.h"
+
 namespace blink {
 
 class LocalFrame;
 class Page;
 
-class PageAnimator {
+class PageAnimator final : public RefCountedWillBeGarbageCollected<PageAnimator> {
 public:
-    explicit PageAnimator(Page*);
-
+    static PassRefPtrWillBeRawPtr<PageAnimator> create(Page&);
+    void trace(Visitor*);
     void scheduleVisualUpdate();
     void serviceScriptedAnimations(double monotonicAnimationStartTime);
 
@@ -22,7 +24,9 @@ public:
     void updateLayoutAndStyleForPainting(LocalFrame* rootFrame);
 
 private:
-    Page* m_page;
+    explicit PageAnimator(Page&);
+
+    RawPtrWillBeMember<Page> m_page;
     bool m_animationFramePending;
     bool m_servicingAnimations;
     bool m_updatingLayoutAndStyleForPainting;