Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / workers / Worker.cpp
index dd2f758..57ed7fa 100644 (file)
@@ -47,7 +47,6 @@ inline Worker::Worker(ExecutionContext* context)
     : AbstractWorker(context)
     , m_contextProxy(0)
 {
-    ScriptWrappable::init(this);
 }
 
 PassRefPtrWillBeRawPtr<Worker> Worker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState)
@@ -62,7 +61,7 @@ PassRefPtrWillBeRawPtr<Worker> Worker::create(ExecutionContext* context, const S
     WorkerGlobalScopeProxyProvider* proxyProvider = WorkerGlobalScopeProxyProvider::from(*document->page());
     ASSERT(proxyProvider);
 
-    RefPtrWillBeRawPtr<Worker> worker = adoptRefWillBeRefCountedGarbageCollected(new Worker(context));
+    RefPtrWillBeRawPtr<Worker> worker = adoptRefWillBeNoop(new Worker(context));
 
     worker->suspendIfNeeded();