Index: third_party/WebKit/Source/web/WebDOMMessageEvent.cpp |
diff --git a/third_party/WebKit/Source/web/WebDOMMessageEvent.cpp b/third_party/WebKit/Source/web/WebDOMMessageEvent.cpp |
index d16262ac4240be85f89450d388baca0173ac916c..02f33d99aa5a3196a73fa53dc1957aa83b84e7fd 100644 |
--- a/third_party/WebKit/Source/web/WebDOMMessageEvent.cpp |
+++ b/third_party/WebKit/Source/web/WebDOMMessageEvent.cpp |
@@ -51,8 +51,8 @@ WebDOMMessageEvent::WebDOMMessageEvent(const WebSerializedScriptValue& messageDa |
window = sourceFrame->toImplBase()->frame()->domWindow(); |
MessagePortArray* ports = nullptr; |
if (!targetDocument.isNull()) { |
- RawPtr<Document> coreDocument = RawPtr<Document>(targetDocument); |
- ports = MessagePort::toMessagePortArray(coreDocument.get(), channels); |
+ Document* coreDocument = targetDocument; |
+ ports = MessagePort::toMessagePortArray(coreDocument, channels); |
} |
// Use an empty array for |ports| when it is null because this function |
// is used to implement postMessage(). |