Index: Source/modules/performance/WorkerGlobalScopePerformance.cpp |
diff --git a/Source/modules/performance/WorkerGlobalScopePerformance.cpp b/Source/modules/performance/WorkerGlobalScopePerformance.cpp |
index 1ecd5be35c3ea0087b287beb279a106a4b2eceb0..8943761f61de94763489c9760cebdd2a821876e1 100644 |
--- a/Source/modules/performance/WorkerGlobalScopePerformance.cpp |
+++ b/Source/modules/performance/WorkerGlobalScopePerformance.cpp |
@@ -52,10 +52,10 @@ const char* WorkerGlobalScopePerformance::supplementName() |
WorkerGlobalScopePerformance& WorkerGlobalScopePerformance::from(WorkerGlobalScope& context) |
{ |
- WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(WorkerSupplement::from(context, supplementName())); |
+ WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(WillBeHeapSupplement<WorkerGlobalScope>::from(context, supplementName())); |
if (!supplement) { |
supplement = new WorkerGlobalScopePerformance(); |
- provideTo(context, supplementName(), adoptPtr(supplement)); |
+ provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement)); |
} |
return *supplement; |
} |
@@ -72,4 +72,9 @@ WorkerPerformance* WorkerGlobalScopePerformance::performance() |
return m_performance.get(); |
} |
+void WorkerGlobalScopePerformance::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_performance); |
+} |
+ |
} // namespace WebCore |