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

Unified Diff: third_party/WebKit/Source/web/WebArrayBuffer.cpp

Issue 1964183004: Revert of Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/web/WebArrayBuffer.cpp
diff --git a/third_party/WebKit/Source/web/WebArrayBuffer.cpp b/third_party/WebKit/Source/web/WebArrayBuffer.cpp
index 471ce6a5c66f6a7240732a12596746ef239a48e1..b54776fe9f2997b1e9290e663cd5d76a6b5878b8 100644
--- a/third_party/WebKit/Source/web/WebArrayBuffer.cpp
+++ b/third_party/WebKit/Source/web/WebArrayBuffer.cpp
@@ -31,6 +31,7 @@
#include "public/web/WebArrayBuffer.h"
#include "core/dom/DOMArrayBuffer.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -63,18 +64,18 @@
return 0;
}
-WebArrayBuffer::WebArrayBuffer(DOMArrayBuffer* buffer)
+WebArrayBuffer::WebArrayBuffer(const PassRefPtr<DOMArrayBuffer>& buffer)
: m_private(buffer)
{
}
-WebArrayBuffer& WebArrayBuffer::operator=(DOMArrayBuffer* buffer)
+WebArrayBuffer& WebArrayBuffer::operator=(const PassRefPtr<DOMArrayBuffer>& buffer)
{
m_private = buffer;
return *this;
}
-WebArrayBuffer::operator DOMArrayBuffer*() const
+WebArrayBuffer::operator PassRefPtr<DOMArrayBuffer>() const
{
return m_private.get();
}

Powered by Google App Engine
This is Rietveld 408576698