Cached Page and Frame don't need to be ref-counted.
[WebKit-https.git] / Source / WebCore / history / CachedPage.cpp
index 4192e60..8ddd331 100644 (file)
@@ -45,9 +45,9 @@ namespace WebCore {
 
 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, cachedPageCounter, ("CachedPage"));
 
-PassRefPtr<CachedPage> CachedPage::create(Page& page)
+PassOwnPtr<CachedPage> CachedPage::create(Page& page)
 {
-    return adoptRef(new CachedPage(page));
+    return adoptPtr(new CachedPage(page));
 }
 
 CachedPage::CachedPage(Page& page)