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

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

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert Created 3 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
Index: third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp
index a16662ff9d7f25f52f6f28146aa5a36f3114bccc..28b03ea13e2f222f1923eaab53f16f729097cd65 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp
@@ -30,7 +30,6 @@
#include "bindings/modules/v8/ToV8ForModules.h"
#include "bindings/modules/v8/V8BindingForModules.h"
#include "core/dom/ExceptionCode.h"
-#include "core/dom/ExecutionContext.h"
#include "modules/indexeddb/IDBDatabase.h"
namespace blink {
@@ -95,7 +94,7 @@ IDBKeyRange* IDBKeyRange::only(ScriptState* script_state,
const ScriptValue& key_value,
ExceptionState& exception_state) {
IDBKey* key =
- ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
+ ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
key_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -113,7 +112,7 @@ IDBKeyRange* IDBKeyRange::lowerBound(ScriptState* script_state,
bool open,
ExceptionState& exception_state) {
IDBKey* bound =
- ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
+ ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
bound_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -133,7 +132,7 @@ IDBKeyRange* IDBKeyRange::upperBound(ScriptState* script_state,
bool open,
ExceptionState& exception_state) {
IDBKey* bound =
- ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
+ ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
bound_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -154,7 +153,7 @@ IDBKeyRange* IDBKeyRange::bound(ScriptState* script_state,
bool upper_open,
ExceptionState& exception_state) {
IDBKey* lower =
- ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
+ ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
lower_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -165,7 +164,7 @@ IDBKeyRange* IDBKeyRange::bound(ScriptState* script_state,
}
IDBKey* upper =
- ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
+ ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
upper_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -196,7 +195,7 @@ bool IDBKeyRange::includes(ScriptState* script_state,
const ScriptValue& key_value,
ExceptionState& exception_state) {
IDBKey* key =
- ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
+ ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
key_value, exception_state);
if (exception_state.HadException())
return false;

Powered by Google App Engine
This is Rietveld 408576698