Index: Source/modules/compositorworker/CompositorWorker.cpp |
diff --git a/Source/modules/compositorworker/CompositorWorker.cpp b/Source/modules/compositorworker/CompositorWorker.cpp |
index 3e30946021747aaa07e7ce3be9f0c39c18357109..3a1a92c029a35cff446f732911ba2581a50d6b5a 100644 |
--- a/Source/modules/compositorworker/CompositorWorker.cpp |
+++ b/Source/modules/compositorworker/CompositorWorker.cpp |
@@ -20,7 +20,7 @@ inline CompositorWorker::CompositorWorker(ExecutionContext* context) |
{ |
} |
-PassRefPtrWillBeRawPtr<CompositorWorker> CompositorWorker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState) |
+CompositorWorker* CompositorWorker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState) |
{ |
ASSERT(isMainThread()); |
Document* document = toDocument(context); |
@@ -28,9 +28,9 @@ PassRefPtrWillBeRawPtr<CompositorWorker> CompositorWorker::create(ExecutionConte |
exceptionState.throwDOMException(InvalidAccessError, "The context provided is invalid."); |
return nullptr; |
} |
- RefPtrWillBeRawPtr<CompositorWorker> worker = adoptRefWillBeNoop(new CompositorWorker(context)); |
+ CompositorWorker* worker = new CompositorWorker(context); |
if (worker->initialize(context, url, exceptionState)) |
- return worker.release(); |
+ return worker; |
return nullptr; |
} |