Index: Source/modules/performance/WorkerGlobalScopePerformance.cpp |
diff --git a/Source/modules/performance/WorkerGlobalScopePerformance.cpp b/Source/modules/performance/WorkerGlobalScopePerformance.cpp |
index 94939d9b9dbe15f78d08e05662a0f1df30c3f3f2..1ecd5be35c3ea0087b287beb279a106a4b2eceb0 100644 |
--- a/Source/modules/performance/WorkerGlobalScopePerformance.cpp |
+++ b/Source/modules/performance/WorkerGlobalScopePerformance.cpp |
@@ -50,19 +50,19 @@ const char* WorkerGlobalScopePerformance::supplementName() |
return "WorkerGlobalScopePerformance"; |
} |
-WorkerGlobalScopePerformance* WorkerGlobalScopePerformance::from(WorkerGlobalScope* context) |
+WorkerGlobalScopePerformance& WorkerGlobalScopePerformance::from(WorkerGlobalScope& context) |
{ |
WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(WorkerSupplement::from(context, supplementName())); |
if (!supplement) { |
supplement = new WorkerGlobalScopePerformance(); |
provideTo(context, supplementName(), adoptPtr(supplement)); |
} |
- return supplement; |
+ return *supplement; |
} |
-WorkerPerformance* WorkerGlobalScopePerformance::performance(WorkerGlobalScope* context) |
+WorkerPerformance* WorkerGlobalScopePerformance::performance(WorkerGlobalScope& context) |
{ |
- return from(context)->performance(); |
+ return from(context).performance(); |
} |
WorkerPerformance* WorkerGlobalScopePerformance::performance() |