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

Unified Diff: Source/modules/indexeddb/IDBKeyRange.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/IDBKeyRange.cpp
diff --git a/Source/modules/indexeddb/IDBKeyRange.cpp b/Source/modules/indexeddb/IDBKeyRange.cpp
index cbe2c277f8aa149a742ef04ff9f895c88c92a270..19b56ce448aca12111a457510291e4b7a9981197 100644
--- a/Source/modules/indexeddb/IDBKeyRange.cpp
+++ b/Source/modules/indexeddb/IDBKeyRange.cpp
@@ -27,6 +27,7 @@
#include "modules/indexeddb/IDBKeyRange.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 "modules/indexeddb/IDBDatabase.h"
@@ -67,12 +68,12 @@ DEFINE_TRACE(IDBKeyRange)
ScriptValue IDBKeyRange::lowerValue(ScriptState* scriptState) const
{
- return idbKeyToScriptValue(scriptState, m_lower);
+ return ScriptValue::from(scriptState, m_lower);
}
ScriptValue IDBKeyRange::upperValue(ScriptState* scriptState) const
{
- return idbKeyToScriptValue(scriptState, m_upper);
+ return ScriptValue::from(scriptState, m_upper);
}
IDBKeyRange* IDBKeyRange::only(IDBKey* key, ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698