Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / MessagePort.cpp
index c161c99..29f57da 100644 (file)
@@ -44,7 +44,7 @@ namespace blink {
 
 PassRefPtrWillBeRawPtr<MessagePort> MessagePort::create(ExecutionContext& executionContext)
 {
-    RefPtrWillBeRawPtr<MessagePort> port = adoptRefWillBeRefCountedGarbageCollected(new MessagePort(executionContext));
+    RefPtrWillBeRawPtr<MessagePort> port = adoptRefWillBeNoop(new MessagePort(executionContext));
     port->suspendIfNeeded();
     return port.release();
 }
@@ -55,7 +55,6 @@ MessagePort::MessagePort(ExecutionContext& executionContext)
     , m_closed(false)
     , m_weakFactory(this)
 {
-    ScriptWrappable::init(this);
 }
 
 MessagePort::~MessagePort()