Index: Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
diff --git a/Source/modules/notifications/WorkerGlobalScopeNotifications.cpp b/Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
index d2627658a3aab35185eb56bb55debdbb94c8a18b..e420fd049443f153b4698f95c2b843edf63384f7 100644 |
--- a/Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
+++ b/Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
@@ -55,7 +55,7 @@ WorkerGlobalScopeNotifications& WorkerGlobalScopeNotifications::from(WorkerGloba |
WorkerGlobalScopeNotifications* supplement = static_cast<WorkerGlobalScopeNotifications*>(WorkerSupplement::from(context, supplementName())); |
if (!supplement) { |
supplement = new WorkerGlobalScopeNotifications(context); |
- WorkerSupplement::provideTo(context, supplementName(), adoptPtr(supplement)); |
+ WorkerSupplement::provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement)); |
} |
return *supplement; |
} |
@@ -72,6 +72,11 @@ NotificationCenter* WorkerGlobalScopeNotifications::webkitNotifications() |
return m_notificationCenter.get(); |
} |
+void WorkerGlobalScopeNotifications::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_notificationCenter); |
+} |
+ |
} // namespace WebCore |
#endif // ENABLE(LEGACY_NOTIFICATIONS) |