Index: Source/core/events/MessageEvent.cpp |
diff --git a/Source/core/events/MessageEvent.cpp b/Source/core/events/MessageEvent.cpp |
index b081d3112ad4770c88e17c6feeb5d305642bfe35..c52f0e1401eed03bf5796a38d7970cc2b1ee9169 100644 |
--- a/Source/core/events/MessageEvent.cpp |
+++ b/Source/core/events/MessageEvent.cpp |
@@ -134,13 +134,13 @@ MessageEvent::~MessageEvent() |
{ |
} |
-PassRefPtrWillBeRawPtr<MessageEvent> MessageEvent::create(const AtomicString& type, const MessageEventInit& initializer, ExceptionState& exceptionState) |
+PassRefPtr<MessageEvent> MessageEvent::create(const AtomicString& type, const MessageEventInit& initializer, ExceptionState& exceptionState) |
{ |
if (initializer.source.get() && !isValidSource(initializer.source.get())) { |
exceptionState.throwTypeError("The optional 'source' property is neither a Window nor MessagePort."); |
return nullptr; |
} |
- return adoptRefWillBeRefCountedGarbageCollected(new MessageEvent(type, initializer)); |
+ return adoptRef(new MessageEvent(type, initializer)); |
} |
void MessageEvent::initMessageEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& origin, const String& lastEventId, DOMWindow* source, PassOwnPtr<MessagePortArray> ports) |