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

Unified Diff: Source/modules/indexeddb/IDBRequest.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/IDBRequest.cpp
diff --git a/Source/modules/indexeddb/IDBRequest.cpp b/Source/modules/indexeddb/IDBRequest.cpp
index 8bee036601a4fdde181e7d1b6f41eadef91a8483..de9692b55b3fbd82c951ebae9e979f10c8aadd39 100644
--- a/Source/modules/indexeddb/IDBRequest.cpp
+++ b/Source/modules/indexeddb/IDBRequest.cpp
@@ -31,6 +31,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ExceptionStatePlaceholder.h"
+#include "bindings/modules/v8/ToV8ForModules.h"
#include "bindings/modules/v8/V8BindingForModules.h"
#include "core/dom/ExecutionContext.h"
#include "core/events/EventQueue.h"
@@ -104,7 +105,7 @@ ScriptValue IDBRequest::result(ExceptionState& exceptionState)
if (m_contextStopped || !executionContext())
return ScriptValue();
m_resultDirty = false;
- ScriptValue value = idbAnyToScriptValue(m_scriptState.get(), m_result);
+ ScriptValue value = ScriptValue::from(m_scriptState.get(), m_result);
return value;
}
@@ -122,7 +123,7 @@ ScriptValue IDBRequest::source() const
if (m_contextStopped || !executionContext())
return ScriptValue();
- return idbAnyToScriptValue(m_scriptState.get(), m_source);
+ return ScriptValue::from(m_scriptState.get(), m_source);
}
const String& IDBRequest::readyState() const

Powered by Google App Engine
This is Rietveld 408576698