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

Unified Diff: Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp

Issue 11348011: Revert 128789 - IndexedDB: Use ScriptValue instead of SerializedScriptValue for get/openCursor (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBDatabase.cpp ('k') | Source/WebCore/Modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp
===================================================================
--- Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp (revision 132816)
+++ Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp (working copy)
@@ -340,8 +340,9 @@
RefPtr<IDBKey> primaryKey = cursor->primaryKey();
RefPtr<IDBAny> valueAny = cursor->value();
- ASSERT(valueAny->type() == IDBAny::ScriptValueType);
- ScriptValue value = valueAny->scriptValue();
+ ASSERT(valueAny->type() == IDBAny::SerializedScriptValueType);
+ RefPtr<SerializedScriptValue> serializedValue = valueAny->serializedScriptValue();
+ ScriptValue value(deserializeIDBValue(context, serializedValue));
IDBObjectStore::IndexKeys indexKeys;
generateIndexKeysForValue(m_indexMetadata, value, &indexKeys);
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBDatabase.cpp ('k') | Source/WebCore/Modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698