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

Unified Diff: third_party/WebKit/Source/core/streams/ReadableStreamImpl.h

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/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()));
}
};

Powered by Google App Engine
This is Rietveld 408576698