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

Unified Diff: Source/modules/indexeddb/IDBCursor.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/IDBCursor.cpp
diff --git a/Source/modules/indexeddb/IDBCursor.cpp b/Source/modules/indexeddb/IDBCursor.cpp
index e8bf76fce2321df5a62b0954ab2ec0a4f62d4cd2..dfc7659b01d2dd1e29ef33f8e2ac018d9a9dbd20 100644
--- a/Source/modules/indexeddb/IDBCursor.cpp
+++ b/Source/modules/indexeddb/IDBCursor.cpp
@@ -28,6 +28,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptState.h"
+#include "bindings/modules/v8/ToV8ForModules.h"
#include "bindings/modules/v8/V8BindingForModules.h"
#include "core/dom/ExceptionCode.h"
#include "core/inspector/ScriptCallStack.h"
@@ -275,13 +276,13 @@ void IDBCursor::close()
ScriptValue IDBCursor::key(ScriptState* scriptState)
{
m_keyDirty = false;
- return idbKeyToScriptValue(scriptState, m_key);
+ return ScriptValue::from(scriptState, m_key);
}
ScriptValue IDBCursor::primaryKey(ScriptState* scriptState)
{
m_primaryKeyDirty = false;
- return idbKeyToScriptValue(scriptState, m_primaryKey);
+ return ScriptValue::from(scriptState, m_primaryKey);
}
ScriptValue IDBCursor::value(ScriptState* scriptState)
@@ -301,13 +302,13 @@ ScriptValue IDBCursor::value(ScriptState* scriptState)
}
m_valueDirty = false;
- ScriptValue scriptValue = idbAnyToScriptValue(scriptState, value);
+ ScriptValue scriptValue = ScriptValue::from(scriptState, value);
return scriptValue;
}
ScriptValue IDBCursor::source(ScriptState* scriptState) const
{
- return idbAnyToScriptValue(scriptState, m_source);
+ return ScriptValue::from(scriptState, m_source);
}
void IDBCursor::setValueReady(IDBKey* key, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, PassOwnPtr<IDBRequest::IDBBlobHolder> blobs)

Powered by Google App Engine
This is Rietveld 408576698