| Index: Source/core/events/MessageEvent.cpp
|
| diff --git a/Source/core/events/MessageEvent.cpp b/Source/core/events/MessageEvent.cpp
|
| index c52f0e1401eed03bf5796a38d7970cc2b1ee9169..f5e2ed8856f6304bac4d31a566ffa609f020efda 100644
|
| --- a/Source/core/events/MessageEvent.cpp
|
| +++ b/Source/core/events/MessageEvent.cpp
|
| @@ -134,13 +134,13 @@ MessageEvent::~MessageEvent()
|
| {
|
| }
|
|
|
| -PassRefPtr<MessageEvent> MessageEvent::create(const AtomicString& type, const MessageEventInit& initializer, ExceptionState& exceptionState)
|
| +PassRefPtrWillBeRawPtr<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 adoptRef(new MessageEvent(type, initializer));
|
| + return adoptRefCountedWillBeRefCountedGarbageCollected(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)
|
|
|