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

Unified Diff: third_party/WebKit/Source/web/WebArrayBuffer.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/web/WebArrayBuffer.cpp
diff --git a/third_party/WebKit/Source/web/WebArrayBuffer.cpp b/third_party/WebKit/Source/web/WebArrayBuffer.cpp
index b54776fe9f2997b1e9290e663cd5d76a6b5878b8..471ce6a5c66f6a7240732a12596746ef239a48e1 100644
--- a/third_party/WebKit/Source/web/WebArrayBuffer.cpp
+++ b/third_party/WebKit/Source/web/WebArrayBuffer.cpp
@@ -31,7 +31,6 @@
#include "public/web/WebArrayBuffer.h"
#include "core/dom/DOMArrayBuffer.h"
-#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -64,18 +63,18 @@ unsigned WebArrayBuffer::byteLength() const
return 0;
}
-WebArrayBuffer::WebArrayBuffer(const PassRefPtr<DOMArrayBuffer>& buffer)
+WebArrayBuffer::WebArrayBuffer(DOMArrayBuffer* buffer)
: m_private(buffer)
{
}
-WebArrayBuffer& WebArrayBuffer::operator=(const PassRefPtr<DOMArrayBuffer>& buffer)
+WebArrayBuffer& WebArrayBuffer::operator=(DOMArrayBuffer* buffer)
{
m_private = buffer;
return *this;
}
-WebArrayBuffer::operator PassRefPtr<DOMArrayBuffer>() const
+WebArrayBuffer::operator DOMArrayBuffer*() const
{
return m_private.get();
}

Powered by Google App Engine
This is Rietveld 408576698