| Index: third_party/WebKit/Source/core/streams/ReadableStreamImpl.h
|
| diff --git a/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h b/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h
|
| index 06beb8ddc9a94e0af14791124ae99177b60c1887..aeb47f64770b8769b1b2e235d6dd67eeba97ea2e 100644
|
| --- a/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h
|
| +++ b/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h
|
| @@ -47,26 +47,26 @@
|
| template<>
|
| class ReadableStreamChunkTypeTraits<DOMArrayBuffer> {
|
| public:
|
| - typedef DOMArrayBuffer* HoldType;
|
| - typedef DOMArrayBuffer* PassType;
|
| + typedef RefPtr<DOMArrayBuffer> HoldType;
|
| + typedef PassRefPtr<DOMArrayBuffer> PassType;
|
|
|
| static size_t size(const PassType& chunk) { return chunk->byteLength(); }
|
| static ScriptValue toScriptValue(ScriptState* scriptState, const HoldType& value)
|
| {
|
| - return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate()));
|
| + return ScriptValue(scriptState, toV8(value.get(), scriptState->context()->Global(), scriptState->isolate()));
|
| }
|
| };
|
|
|
| template<>
|
| class ReadableStreamChunkTypeTraits<DOMArrayBufferView> {
|
| public:
|
| - typedef DOMArrayBufferView* HoldType;
|
| - typedef DOMArrayBufferView* PassType;
|
| + typedef RefPtr<DOMArrayBufferView> HoldType;
|
| + typedef PassRefPtr<DOMArrayBufferView> PassType;
|
|
|
| static size_t size(const PassType& chunk) { return chunk->byteLength(); }
|
| static ScriptValue toScriptValue(ScriptState* scriptState, const HoldType& value)
|
| {
|
| - return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate()));
|
| + return ScriptValue(scriptState, toV8(value.get(), scriptState->context()->Global(), scriptState->isolate()));
|
| }
|
| };
|
|
|
|
|