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

Unified Diff: Source/bindings/scripts/code_generator_v8.pm

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 | « no previous file | Source/bindings/v8/DOMWrapperWorld.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/code_generator_v8.pm
diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
index 2b93d0d41ec4d7a099ff856f997a5fb5a5011243..a0db395f7a486008d6ec09599360ebeb4fdf4743 100644
--- a/Source/bindings/scripts/code_generator_v8.pm
+++ b/Source/bindings/scripts/code_generator_v8.pm
@@ -4865,7 +4865,7 @@ END
return wrapper;
if (!isolatedWorldForEnteredContext()) {
if (Frame* frame = impl->frame())
- frame->script()->windowShell(mainThreadNormalWorld())->updateDocumentWrapper(wrapper);
+ frame->script().windowShell(mainThreadNormalWorld())->updateDocumentWrapper(wrapper);
}
END
}
@@ -4928,7 +4928,7 @@ END
AddToImplIncludes("core/frame/Frame.h");
$code .= <<END;
if (Frame* frame = impl->frame()) {
- if (frame->script()->initializeMainWorld()) {
+ if (frame->script().initializeMainWorld()) {
// initializeMainWorld may have created a wrapper for the object, retry from the start.
v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapper<${v8ClassName}>(impl.get(), isolate);
if (!wrapper.IsEmpty())
« no previous file with comments | « no previous file | Source/bindings/v8/DOMWrapperWorld.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698