Index: Source/core/workers/SharedWorker.cpp |
diff --git a/Source/core/workers/SharedWorker.cpp b/Source/core/workers/SharedWorker.cpp |
index 6f2f640ecedab5441b1a6cb202e6230265080a44..f548e9bff9706412b1c0e779e673ef73327dcec0 100644 |
--- a/Source/core/workers/SharedWorker.cpp |
+++ b/Source/core/workers/SharedWorker.cpp |
@@ -54,14 +54,14 @@ inline SharedWorker::SharedWorker(ExecutionContext* context) |
ScriptWrappable::init(this); |
} |
-PassRefPtr<SharedWorker> SharedWorker::create(ExecutionContext* context, const String& url, const String& name, ExceptionState& exceptionState) |
+PassRefPtrWillBeRawPtr<SharedWorker> SharedWorker::create(ExecutionContext* context, const String& url, const String& name, ExceptionState& exceptionState) |
{ |
ASSERT(isMainThread()); |
ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument()); |
UseCounter::count(context, UseCounter::SharedWorkerStart); |
- RefPtr<SharedWorker> worker = adoptRef(new SharedWorker(context)); |
+ RefPtrWillBeRawPtr<SharedWorker> worker = adoptRefWillBeRefCountedGarbageCollected(new SharedWorker(context)); |
RefPtr<MessageChannel> channel = MessageChannel::create(context); |
worker->m_port = channel->port1(); |
@@ -106,4 +106,9 @@ void SharedWorker::unsetPreventGC() |
unsetPendingActivity(this); |
} |
+void SharedWorker::trace(Visitor* visitor) |
+{ |
+ AbstractWorker::trace(visitor); |
+} |
+ |
} // namespace WebCore |