Chromium Code Reviews| 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()); |