Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / FullscreenElementStack.h
index 71ac402..9fd6945 100644 (file)
@@ -47,8 +47,10 @@ class RenderStyle;
 class ExecutionContext;
 
 class FullscreenElementStack FINAL
-    : public DocumentSupplement
+    : public NoBaseWillBeGarbageCollectedFinalized<FullscreenElementStack>
+    , public DocumentSupplement
     , public DocumentLifecycleObserver {
+    WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FullscreenElementStack);
 public:
     virtual ~FullscreenElementStack();
     static const char* supplementName();
@@ -97,6 +99,8 @@ public:
     virtual void documentWasDetached() OVERRIDE;
     virtual void documentWasDisposed() OVERRIDE;
 
+    virtual void trace(Visitor*) OVERRIDE;
+
 private:
     static FullscreenElementStack* fromIfExistsSlow(Document&);
 
@@ -106,12 +110,12 @@ private:
     void fullScreenChangeDelayTimerFired(Timer<FullscreenElementStack>*);
 
     bool m_areKeysEnabledInFullScreen;
-    RefPtr<Element> m_fullScreenElement;
-    Vector<RefPtr<Element> > m_fullScreenElementStack;
+    RefPtrWillBeMember<Element> m_fullScreenElement;
+    WillBeHeapVector<RefPtrWillBeMember<Element> > m_fullScreenElementStack;
     RenderFullScreen* m_fullScreenRenderer;
     Timer<FullscreenElementStack> m_fullScreenChangeDelayTimer;
-    Deque<RefPtr<Node> > m_fullScreenChangeEventTargetQueue;
-    Deque<RefPtr<Node> > m_fullScreenErrorEventTargetQueue;
+    WillBeHeapDeque<RefPtrWillBeMember<Node> > m_fullScreenChangeEventTargetQueue;
+    WillBeHeapDeque<RefPtrWillBeMember<Node> > m_fullScreenErrorEventTargetQueue;
     LayoutRect m_savedPlaceholderFrameRect;
     RefPtr<RenderStyle> m_savedPlaceholderRenderStyle;
 };