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 aeb47f64770b8769b1b2e235d6dd67eeba97ea2e..06beb8ddc9a94e0af14791124ae99177b60c1887 100644 |
--- a/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h |
+++ b/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h |
@@ -47,26 +47,26 @@ public: |
template<> |
class ReadableStreamChunkTypeTraits<DOMArrayBuffer> { |
public: |
- typedef RefPtr<DOMArrayBuffer> HoldType; |
- typedef PassRefPtr<DOMArrayBuffer> PassType; |
+ typedef DOMArrayBuffer* HoldType; |
+ typedef 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.get(), scriptState->context()->Global(), scriptState->isolate())); |
+ return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate())); |
} |
}; |
template<> |
class ReadableStreamChunkTypeTraits<DOMArrayBufferView> { |
public: |
- typedef RefPtr<DOMArrayBufferView> HoldType; |
- typedef PassRefPtr<DOMArrayBufferView> PassType; |
+ typedef DOMArrayBufferView* HoldType; |
+ typedef 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.get(), scriptState->context()->Global(), scriptState->isolate())); |
+ return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate())); |
} |
}; |