Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Unified Diff: Source/core/dom/MessagePort.cpp

Issue 177073004: Oilpan: move core/workers to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/MessagePort.cpp
diff --git a/Source/core/dom/MessagePort.cpp b/Source/core/dom/MessagePort.cpp
index 769a4ef7307c3da932dc64d64aa68acb28b26333..36bcbea688ea154aaf5922a4805401cb3c008561 100644
--- a/Source/core/dom/MessagePort.cpp
+++ b/Source/core/dom/MessagePort.cpp
@@ -43,9 +43,11 @@
namespace WebCore {
-PassRefPtr<MessagePort> MessagePort::create(ExecutionContext& executionContext)
+DEFINE_GC_INFO(MessagePort);
+
+PassRefPtrWillBeRawPtr<MessagePort> MessagePort::create(ExecutionContext& executionContext)
{
- RefPtr<MessagePort> port = adoptRef(new MessagePort(executionContext));
+ RefPtrWillBeRawPtr<MessagePort> port = adoptRefCountedWillBeRefCountedGarbageCollected(new MessagePort(executionContext));
port->suspendIfNeeded();
return port.release();
}

Powered by Google App Engine
This is Rietveld 408576698