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

Unified Diff: third_party/WebKit/Source/web/WebArrayBufferConverter.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/WebArrayBufferConverter.cpp
diff --git a/third_party/WebKit/Source/web/WebArrayBufferConverter.cpp b/third_party/WebKit/Source/web/WebArrayBufferConverter.cpp
index b25e409e0cd21cb5b01ac76f9e93524b28ade8c4..4235910392403a8c4cf1d1c6b0a0bf30af51e7ce 100644
--- a/third_party/WebKit/Source/web/WebArrayBufferConverter.cpp
+++ b/third_party/WebKit/Source/web/WebArrayBufferConverter.cpp
@@ -41,7 +41,7 @@ v8::Local<v8::Value> WebArrayBufferConverter::toV8Value(WebArrayBuffer* buffer,
DCHECK(creationContext->CreationContext() == isolate->GetCurrentContext());
if (!buffer)
return v8::Local<v8::Value>();
- return toV8(PassRefPtr<DOMArrayBuffer>(*buffer), isolate->GetCurrentContext()->Global(), isolate);
+ return toV8(*buffer, isolate->GetCurrentContext()->Global(), isolate);
}
WebArrayBuffer* WebArrayBufferConverter::createFromV8Value(v8::Local<v8::Value> value, v8::Isolate* isolate)

Powered by Google App Engine
This is Rietveld 408576698