Index: Source/modules/quota/NavigatorStorageQuota.cpp |
diff --git a/Source/modules/quota/NavigatorStorageQuota.cpp b/Source/modules/quota/NavigatorStorageQuota.cpp |
index 01893b19759faed62fe36c7d8f1b36f9f93ca4ed..90f1fb2e6896eafc8fbf610c3c4b69a8cfecd60b 100644 |
--- a/Source/modules/quota/NavigatorStorageQuota.cpp |
+++ b/Source/modules/quota/NavigatorStorageQuota.cpp |
@@ -53,10 +53,10 @@ const char* NavigatorStorageQuota::supplementName() |
NavigatorStorageQuota& NavigatorStorageQuota::from(Navigator& navigator) |
{ |
- NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(Supplement<Navigator>::from(navigator, supplementName())); |
+ NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName())); |
if (!supplement) { |
supplement = new NavigatorStorageQuota(navigator.frame()); |
- provideTo(navigator, supplementName(), adoptPtr(supplement)); |
+ provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement)); |
} |
return *supplement; |
} |
@@ -97,4 +97,11 @@ DeprecatedStorageQuota* NavigatorStorageQuota::webkitPersistentStorage() const |
return m_persistentStorage.get(); |
} |
+void NavigatorStorageQuota::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_storageQuota); |
+ visitor->trace(m_temporaryStorage); |
+ visitor->trace(m_persistentStorage); |
+} |
+ |
} // namespace WebCore |