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

Unified Diff: Source/bindings/v8/ScriptEventListener.cpp

Issue 23477075: Rename isolateFor*() utility functions to toIsolate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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/bindings/v8/DOMRequestState.h ('k') | Source/bindings/v8/ScriptState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptEventListener.cpp
diff --git a/Source/bindings/v8/ScriptEventListener.cpp b/Source/bindings/v8/ScriptEventListener.cpp
index 035802ab42306b9ee6b50c8763b570c39c0830fd..94856fe5af3605ed1edd610b8709780a3d39b842 100644
--- a/Source/bindings/v8/ScriptEventListener.cpp
+++ b/Source/bindings/v8/ScriptEventListener.cpp
@@ -94,7 +94,7 @@ String eventListenerHandlerBody(Document* document, EventListener* listener)
if (listener->type() != EventListener::JSEventListenerType)
return "";
- v8::HandleScope scope(isolateForScriptExecutionContext(document));
+ v8::HandleScope scope(toIsolate(document));
V8AbstractEventListener* v8Listener = static_cast<V8AbstractEventListener*>(listener);
v8::Handle<v8::Context> context = toV8Context(document, v8Listener->world());
v8::Context::Scope contextScope(context);
@@ -110,7 +110,7 @@ ScriptValue eventListenerHandler(Document* document, EventListener* listener)
if (listener->type() != EventListener::JSEventListenerType)
return ScriptValue();
- v8::HandleScope scope(isolateForScriptExecutionContext(document));
+ v8::HandleScope scope(toIsolate(document));
V8AbstractEventListener* v8Listener = static_cast<V8AbstractEventListener*>(listener);
v8::Handle<v8::Context> context = toV8Context(document, v8Listener->world());
v8::Context::Scope contextScope(context);
@@ -125,7 +125,7 @@ ScriptState* eventListenerHandlerScriptState(Frame* frame, EventListener* listen
if (listener->type() != EventListener::JSEventListenerType)
return 0;
V8AbstractEventListener* v8Listener = static_cast<V8AbstractEventListener*>(listener);
- v8::HandleScope scope(isolateForFrame(frame));
+ v8::HandleScope scope(toIsolate(frame));
v8::Handle<v8::Context> v8Context = frame->script()->windowShell(v8Listener->world())->context();
return ScriptState::forContext(v8Context);
}
@@ -135,7 +135,7 @@ bool eventListenerHandlerLocation(Document* document, EventListener* listener, S
if (listener->type() != EventListener::JSEventListenerType)
return false;
- v8::HandleScope scope(isolateForScriptExecutionContext(document));
+ v8::HandleScope scope(toIsolate(document));
V8AbstractEventListener* v8Listener = static_cast<V8AbstractEventListener*>(listener);
v8::Handle<v8::Context> context = toV8Context(document, v8Listener->world());
v8::Context::Scope contextScope(context);
« no previous file with comments | « Source/bindings/v8/DOMRequestState.h ('k') | Source/bindings/v8/ScriptState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698