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

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

Issue 33523002: Have Frame::script() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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/PageScriptDebugServer.cpp ('k') | Source/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScheduledAction.cpp
diff --git a/Source/bindings/v8/ScheduledAction.cpp b/Source/bindings/v8/ScheduledAction.cpp
index a231a38651e573a462334f1e0d1c6721d96c0072..a0089cc1a4bbef9c38f428ea668eaf3c2ae9b2fc 100644
--- a/Source/bindings/v8/ScheduledAction.cpp
+++ b/Source/bindings/v8/ScheduledAction.cpp
@@ -75,7 +75,7 @@ void ScheduledAction::execute(ExecutionContext* context)
Frame* frame = toDocument(context)->frame();
if (!frame)
return;
- if (!frame->script()->canExecuteScripts(AboutToExecuteScript))
+ if (!frame->script().canExecuteScripts(AboutToExecuteScript))
return;
execute(frame);
} else {
@@ -97,9 +97,9 @@ void ScheduledAction::execute(Frame* frame)
v8::Context::Scope scope(context);
Vector<v8::Handle<v8::Value> > args;
createLocalHandlesForArgs(&args);
- frame->script()->callFunction(m_function.newLocal(m_isolate), context->Global(), args.size(), args.data());
+ frame->script().callFunction(m_function.newLocal(m_isolate), context->Global(), args.size(), args.data());
} else {
- frame->script()->executeScriptAndReturnValue(context, ScriptSourceCode(m_code));
+ frame->script().executeScriptAndReturnValue(context, ScriptSourceCode(m_code));
}
// The frame might be invalid at this point because JavaScript could have released it.
« no previous file with comments | « Source/bindings/v8/PageScriptDebugServer.cpp ('k') | Source/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698