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

Unified Diff: Source/bindings/v8/V8Binding.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/ScriptState.cpp ('k') | Source/bindings/v8/V8EventListener.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8Binding.cpp
diff --git a/Source/bindings/v8/V8Binding.cpp b/Source/bindings/v8/V8Binding.cpp
index 18bb1fac8a9c3044f15b94b0af9f48a21243faf5..92f4b95a42afe1b8a51e007aeb6304ae32686550 100644
--- a/Source/bindings/v8/V8Binding.cpp
+++ b/Source/bindings/v8/V8Binding.cpp
@@ -500,7 +500,7 @@ v8::Local<v8::Context> toV8Context(ExecutionContext* context, DOMWrapperWorld* w
if (context->isDocument()) {
ASSERT(world);
if (Frame* frame = toDocument(context)->frame())
- return frame->script()->windowShell(world)->context();
+ return frame->script().windowShell(world)->context();
} else if (context->isWorkerGlobalScope()) {
ASSERT(!world);
if (WorkerScriptController* script = toWorkerGlobalScope(context)->script())
@@ -521,7 +521,7 @@ bool handleOutOfMemory()
if (!frame)
return true;
- frame->script()->clearForOutOfMemory();
+ frame->script().clearForOutOfMemory();
frame->loader()->client()->didExhaustMemoryAvailableForScript();
if (Settings* settings = frame->settings())
@@ -606,7 +606,7 @@ v8::Isolate* toIsolate(ExecutionContext* context)
v8::Isolate* toIsolate(Frame* frame)
{
- return frame->script()->isolate();
+ return frame->script().isolate();
}
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/ScriptState.cpp ('k') | Source/bindings/v8/V8EventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698