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

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

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: 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 28b03ea13e2f222f1923eaab53f16f729097cd65..a16662ff9d7f25f52f6f28146aa5a36f3114bccc 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp
@@ -30,6 +30,7 @@
#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 {
@@ -94,7 +95,7 @@
const ScriptValue& key_value,
ExceptionState& exception_state) {
IDBKey* key =
- ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
+ ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
key_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -112,7 +113,7 @@
bool open,
ExceptionState& exception_state) {
IDBKey* bound =
- ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
+ ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
bound_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -132,7 +133,7 @@
bool open,
ExceptionState& exception_state) {
IDBKey* bound =
- ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
+ ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
bound_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -153,7 +154,7 @@
bool upper_open,
ExceptionState& exception_state) {
IDBKey* lower =
- ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
+ ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
lower_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -164,7 +165,7 @@
}
IDBKey* upper =
- ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
+ ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
upper_value, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -195,7 +196,7 @@
const ScriptValue& key_value,
ExceptionState& exception_state) {
IDBKey* key =
- ScriptValue::To<IDBKey*>(ToIsolate(script_state->GetExecutionContext()),
+ ScriptValue::To<IDBKey*>(ToIsolate(ExecutionContext::From(script_state)),
key_value, exception_state);
if (exception_state.HadException())
return false;

Powered by Google App Engine
This is Rietveld 408576698