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

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

Issue 236783002: Pass NewScriptState to idbAnyToScriptValue() and idbKeyToScriptValue() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/modules/indexeddb/IDBKeyRange.h ('k') | Source/modules/indexeddb/IDBKeyRange.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBKeyRange.cpp
diff --git a/Source/modules/indexeddb/IDBKeyRange.cpp b/Source/modules/indexeddb/IDBKeyRange.cpp
index a02ec4b1db78063668085a16145a9724b0463206..0b923a8cf6bee458a2e380dbc770313f80f35792 100644
--- a/Source/modules/indexeddb/IDBKeyRange.cpp
+++ b/Source/modules/indexeddb/IDBKeyRange.cpp
@@ -62,16 +62,14 @@ IDBKeyRange::IDBKeyRange(PassRefPtr<IDBKey> lower, PassRefPtr<IDBKey> upper, Low
ScriptWrappable::init(this);
}
-ScriptValue IDBKeyRange::lowerValue(ExecutionContext* context) const
+ScriptValue IDBKeyRange::lowerValue(NewScriptState* scriptState) const
{
- DOMRequestState requestState(toIsolate(context));
- return idbKeyToScriptValue(&requestState, m_lower);
+ return idbKeyToScriptValue(scriptState, m_lower);
}
-ScriptValue IDBKeyRange::upperValue(ExecutionContext* context) const
+ScriptValue IDBKeyRange::upperValue(NewScriptState* scriptState) const
{
- DOMRequestState requestState(toIsolate(context));
- return idbKeyToScriptValue(&requestState, m_upper);
+ return idbKeyToScriptValue(scriptState, m_upper);
}
PassRefPtr<IDBKeyRange> IDBKeyRange::only(PassRefPtr<IDBKey> prpKey, ExceptionState& exceptionState)
« no previous file with comments | « Source/modules/indexeddb/IDBKeyRange.h ('k') | Source/modules/indexeddb/IDBKeyRange.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698