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

Unified Diff: Source/bindings/core/v8/custom/V8FileReaderCustom.cpp

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Win GPU tests (DOMDataView). Created 6 years, 2 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: Source/bindings/core/v8/custom/V8FileReaderCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8FileReaderCustom.cpp b/Source/bindings/core/v8/custom/V8FileReaderCustom.cpp
index 5cfb8f7bf6871b5419dde3d22cd8df452b6f49c0..45b43f9221947344a48e9c027f6c56ebc4737f4b 100644
--- a/Source/bindings/core/v8/custom/V8FileReaderCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8FileReaderCustom.cpp
@@ -31,8 +31,8 @@
#include "config.h"
#include "bindings/core/v8/V8FileReader.h"
+#include "bindings/core/v8/V8ArrayBuffer.h"
#include "bindings/core/v8/V8Binding.h"
-#include "bindings/core/v8/custom/V8ArrayBufferCustom.h"
#include "core/dom/ExecutionContext.h"
namespace blink {
@@ -42,7 +42,8 @@ void V8FileReader::resultAttributeGetterCustom(const v8::PropertyCallbackInfo<v8
v8::Handle<v8::Object> holder = info.Holder();
FileReader* impl = V8FileReader::toImpl(holder);
if (impl->readType() == FileReaderLoader::ReadAsArrayBuffer) {
- v8SetReturnValueFast(info, impl->arrayBufferResult(), impl);
+ RefPtr<DOMArrayBuffer> arrayBuffer = DOMArrayBuffer::create(impl->arrayBufferResult());
haraken 2014/10/14 15:11:18 Help me understand: Where do you want to use DOMAr
Yuki 2014/10/15 09:35:22 I made this CL with the least effort, and it's not
+ v8SetReturnValueFast(info, arrayBuffer.get(), impl);
haraken 2014/10/14 15:11:18 .get() => .release() (There is no behavioral diffe
Yuki 2014/10/15 09:35:22 Done.
return;
}
v8SetReturnValueStringOrNull(info, impl->stringResult(), info.GetIsolate());

Powered by Google App Engine
This is Rietveld 408576698