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

Unified Diff: third_party/WebKit/Source/core/events/MessageEvent.cpp

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 years, 8 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: third_party/WebKit/Source/core/events/MessageEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MessageEvent.cpp b/third_party/WebKit/Source/core/events/MessageEvent.cpp
index d1107f5b3407471ed3d4ae7a604cde6c90b0adaf..8b04e6cdb52011d2d0cbf6eaf183f851256f19b8 100644
--- a/third_party/WebKit/Source/core/events/MessageEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MessageEvent.cpp
@@ -117,7 +117,7 @@ MessageEvent::MessageEvent(Blob* data, const String& origin, const String& subor
{
}
-MessageEvent::MessageEvent(PassRefPtr<DOMArrayBuffer> data, const String& origin, const String& suborigin)
+MessageEvent::MessageEvent(DOMArrayBuffer* data, const String& origin, const String& suborigin)
: Event(EventTypeNames::message, false, false)
, m_dataType(DataTypeArrayBuffer)
, m_dataAsArrayBuffer(data)
@@ -206,6 +206,7 @@ void MessageEvent::entangleMessagePorts(ExecutionContext* context)
DEFINE_TRACE(MessageEvent)
{
visitor->trace(m_dataAsBlob);
+ visitor->trace(m_dataAsArrayBuffer);
visitor->trace(m_source);
visitor->trace(m_ports);
Event::trace(visitor);

Powered by Google App Engine
This is Rietveld 408576698