Index: Source/modules/quota/WorkerNavigatorStorageQuota.cpp |
diff --git a/Source/modules/quota/WorkerNavigatorStorageQuota.cpp b/Source/modules/quota/WorkerNavigatorStorageQuota.cpp |
index f2e0a2892f6f8a652fc45f8e0782c1e291df9d54..7a18b5c4eed0d3932a180ef254b47878b85b5845 100644 |
--- a/Source/modules/quota/WorkerNavigatorStorageQuota.cpp |
+++ b/Source/modules/quota/WorkerNavigatorStorageQuota.cpp |
@@ -50,10 +50,10 @@ const char* WorkerNavigatorStorageQuota::supplementName() |
WorkerNavigatorStorageQuota& WorkerNavigatorStorageQuota::from(WorkerNavigator& navigator) |
{ |
- WorkerNavigatorStorageQuota* supplement = static_cast<WorkerNavigatorStorageQuota*>(Supplement<WorkerNavigator>::from(navigator, supplementName())); |
+ WorkerNavigatorStorageQuota* supplement = static_cast<WorkerNavigatorStorageQuota*>(WillBeHeapSupplement<WorkerNavigator>::from(navigator, supplementName())); |
if (!supplement) { |
supplement = new WorkerNavigatorStorageQuota(); |
- provideTo(navigator, supplementName(), adoptPtr(supplement)); |
+ provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement)); |
} |
return *supplement; |
} |
@@ -82,4 +82,10 @@ DeprecatedStorageQuota* WorkerNavigatorStorageQuota::webkitPersistentStorage() c |
return m_persistentStorage.get(); |
} |
+void WorkerNavigatorStorageQuota::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_temporaryStorage); |
+ visitor->trace(m_persistentStorage); |
+} |
+ |
} // namespace WebCore |