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

Unified Diff: Source/bindings/v8/custom/V8IDBAnyCustom.cpp

Issue 18590006: Blob support for IDB [Blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: small cleanup Created 7 years 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/v8/custom/V8IDBAnyCustom.cpp
diff --git a/Source/bindings/v8/custom/V8IDBAnyCustom.cpp b/Source/bindings/v8/custom/V8IDBAnyCustom.cpp
index 4bac38f1eedb40b469a3e4af8d7313e8a9b2188b..d5cf9990de0f56483339d35422b42817581e2213 100644
--- a/Source/bindings/v8/custom/V8IDBAnyCustom.cpp
+++ b/Source/bindings/v8/custom/V8IDBAnyCustom.cpp
@@ -87,7 +87,7 @@ v8::Handle<v8::Value> toV8(IDBAny* impl, v8::Handle<v8::Object> creationContext,
case IDBAny::IDBTransactionType:
return toV8(impl->idbTransaction(), creationContext, isolate);
case IDBAny::BufferType:
- return deserializeIDBValueBuffer(impl->buffer(), isolate);
+ return deserializeIDBValueBuffer(impl->buffer(), impl->blobInfo(), isolate);
case IDBAny::StringType:
return v8String(impl->string(), isolate);
case IDBAny::IntegerType:
@@ -97,7 +97,7 @@ v8::Handle<v8::Value> toV8(IDBAny* impl, v8::Handle<v8::Object> creationContext,
case IDBAny::KeyPathType:
return toV8(impl->keyPath(), creationContext, isolate);
case IDBAny::BufferKeyAndKeyPathType: {
- v8::Handle<v8::Value> value = deserializeIDBValueBuffer(impl->buffer(), isolate);
+ v8::Handle<v8::Value> value = deserializeIDBValueBuffer(impl->buffer(), impl->blobInfo(), isolate);
v8::Handle<v8::Value> key = toV8(impl->key(), creationContext, isolate);
bool injected = injectV8KeyIntoV8Value(key, value, impl->keyPath(), isolate);
ASSERT_UNUSED(injected, injected);

Powered by Google App Engine
This is Rietveld 408576698