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

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

Issue 1003713002: [bindings] Rename IDBBindingUtilities.cpp to V8BindingForModules.cpp (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/IDBObjectStore.cpp
diff --git a/Source/modules/indexeddb/IDBObjectStore.cpp b/Source/modules/indexeddb/IDBObjectStore.cpp
index a10dc53bf18ffe0146e7a4f1895ef3b0321ae970..5946722aa46e0a8634a49c759451209c6f87cd10 100644
--- a/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -30,7 +30,8 @@
#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/SerializedScriptValueFactory.h"
-#include "bindings/modules/v8/IDBBindingUtilities.h"
+#include "bindings/modules/v8/ToV8ForModules.h"
+#include "bindings/modules/v8/V8BindingForModules.h"
#include "core/dom/DOMStringList.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
@@ -72,7 +73,7 @@ DEFINE_TRACE(IDBObjectStore)
ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const
{
- return idbKeyPathToScriptValue(scriptState, m_metadata.keyPath);
+ return ScriptValue::from(scriptState, m_metadata.keyPath);
}
PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const
@@ -154,7 +155,7 @@ IDBRequest* IDBObjectStore::put(ScriptState* scriptState, const ScriptValue& val
IDBRequest* IDBObjectStore::put(ScriptState* scriptState, WebIDBPutMode putMode, IDBAny* source, const ScriptValue& value, const ScriptValue& keyValue, ExceptionState& exceptionState)
{
- IDBKey* key = keyValue.isUndefined() ? nullptr : scriptValueToIDBKey(scriptState->isolate(), keyValue);
+ IDBKey* key = keyValue.isUndefined() ? nullptr : script_value_cast<IDBKey*>(keyValue, scriptState->isolate(), exceptionState);
return put(scriptState, putMode, source, value, key, exceptionState);
}

Powered by Google App Engine
This is Rietveld 408576698