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

Unified Diff: Source/modules/indexeddb/IDBIndex.cpp

Issue 1007703003: [bindings] Utilize ScriptValue::from and remove IDB* => ScriptValue conversion methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/modules/indexeddb/IDBIndex.cpp
diff --git a/Source/modules/indexeddb/IDBIndex.cpp b/Source/modules/indexeddb/IDBIndex.cpp
index e64118b84abd4760056cb0abb5e7d5150240945c..281364b653db2f6a3571dbb0d5322d87203665c0 100644
--- a/Source/modules/indexeddb/IDBIndex.cpp
+++ b/Source/modules/indexeddb/IDBIndex.cpp
@@ -27,6 +27,7 @@
#include "modules/indexeddb/IDBIndex.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/modules/v8/ToV8ForModules.h"
#include "bindings/modules/v8/V8BindingForModules.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
@@ -67,7 +68,7 @@ DEFINE_TRACE(IDBIndex)
ScriptValue IDBIndex::keyPath(ScriptState* scriptState) const
{
- return idbKeyPathToScriptValue(scriptState, m_metadata.keyPath);
+ return ScriptValue::from(scriptState, m_metadata.keyPath);
}
IDBRequest* IDBIndex::openCursor(ScriptState* scriptState, const ScriptValue& range, const String& directionString, ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698