Cached Page and Frame don't need to be ref-counted.
[WebKit-https.git] / Source / WebCore / history / CachedFrame.h
index c23266f..9838f73 100644 (file)
@@ -30,7 +30,6 @@
 #include "KURL.h"
 #include "ScriptCachedFrameData.h"
 #include <wtf/PassOwnPtr.h>
-#include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
 
 namespace WebCore {
@@ -67,12 +66,12 @@ protected:
     bool m_isComposited;
 #endif
     
-    Vector<RefPtr<CachedFrame>> m_childFrames;
+    Vector<OwnPtr<CachedFrame>> m_childFrames;
 };
 
-class CachedFrame : public RefCounted<CachedFrame>, private CachedFrameBase {
+class CachedFrame : private CachedFrameBase {
 public:
-    static PassRefPtr<CachedFrame> create(Frame& frame) { return adoptRef(new CachedFrame(frame)); }
+    static PassOwnPtr<CachedFrame> create(Frame& frame) { return adoptPtr(new CachedFrame(frame)); }
 
     void open();
     void clear();