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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp

Issue 2857853007: Rename |m_scriptState| to |script_state_| in IDL bindings. (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/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp
index 53f1fd349a5e6568e213f81ba3fc227a730635a2..79eba5d07adbf33bd942a8982374dbd4d4767be9 100644
--- a/third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp
@@ -29,7 +29,7 @@ VoidCallbackFunctionModules* VoidCallbackFunctionModules::Create(ScriptState* sc
}
VoidCallbackFunctionModules::VoidCallbackFunctionModules(ScriptState* scriptState, v8::Local<v8::Function> callback)
- : m_scriptState(scriptState),
+ : script_state_(scriptState),
m_callback(scriptState->GetIsolate(), this, callback) {
DCHECK(!m_callback.IsEmpty());
}
@@ -42,10 +42,10 @@ bool VoidCallbackFunctionModules::call(ScriptWrappable* scriptWrappable) {
if (m_callback.IsEmpty())
return false;
- if (!m_scriptState->ContextIsValid())
+ if (!script_state_->ContextIsValid())
return false;
- ExecutionContext* context = ExecutionContext::From(m_scriptState.Get());
+ ExecutionContext* context = ExecutionContext::From(script_state_.Get());
DCHECK(context);
if (context->IsContextSuspended() || context->IsContextDestroyed())
return false;
@@ -53,12 +53,12 @@ bool VoidCallbackFunctionModules::call(ScriptWrappable* scriptWrappable) {
// TODO(bashi): Make sure that using DummyExceptionStateForTesting is OK.
// crbug.com/653769
DummyExceptionStateForTesting exceptionState;
- ScriptState::Scope scope(m_scriptState.Get());
- v8::Isolate* isolate = m_scriptState->GetIsolate();
+ ScriptState::Scope scope(script_state_.Get());
+ v8::Isolate* isolate = script_state_->GetIsolate();
v8::Local<v8::Value> thisValue = ToV8(
scriptWrappable,
- m_scriptState->GetContext()->Global(),
+ script_state_->GetContext()->Global(),
isolate);
v8::Local<v8::Value> *argv = nullptr;

Powered by Google App Engine
This is Rietveld 408576698