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

Unified Diff: Source/WebCore/bindings/v8/custom/V8IDBAnyCustom.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
Index: Source/WebCore/bindings/v8/custom/V8IDBAnyCustom.cpp
===================================================================
--- Source/WebCore/bindings/v8/custom/V8IDBAnyCustom.cpp (revision 132816)
+++ Source/WebCore/bindings/v8/custom/V8IDBAnyCustom.cpp (working copy)
@@ -31,7 +31,7 @@
#include "V8IDBAny.h"
-#include "ScriptValue.h"
+#include "SerializedScriptValue.h"
#include "V8Binding.h"
#include "V8DOMStringList.h"
#include "V8IDBCursor.h"
@@ -73,12 +73,10 @@
return toV8(impl->idbObjectStore(), creationContext, isolate);
case IDBAny::IDBTransactionType:
return toV8(impl->idbTransaction(), creationContext, isolate);
- case IDBAny::ScriptValueType:
- return impl->scriptValue().v8Value();
+ case IDBAny::SerializedScriptValueType:
+ return impl->serializedScriptValue()->deserialize(0, isolate);
case IDBAny::StringType:
return v8String(impl->string(), isolate);
- case IDBAny::IntegerType:
- return v8::Number::New(impl->integer());
}
ASSERT_NOT_REACHED();
« no previous file with comments | « Source/WebCore/bindings/v8/IDBBindingUtilities.cpp ('k') | Source/WebKit/chromium/tests/IDBBindingUtilitiesTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698