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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2021203002: Rename ScriptWrappable::newLocalWrapper to ScriptWrappable::mainWorldWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index b67e4a6ca84ce244d459c1346e967d5601da75c9..70d454fe26280c8b1fb0f5a6742bb196a21fb48d 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -6334,7 +6334,7 @@ void WebGLRenderingContextBase::preserveObjectWrapper(ScriptState* scriptState,
persistentCache->set(isolate, v8::Array::New(isolate));
V8HiddenValue::setHiddenValue(
scriptState,
- sourceObject->newLocalWrapper(isolate),
+ sourceObject->mainWorldWrapper(isolate),
hiddenValueName,
persistentCache->newLocal(isolate));
// It is important to mark the persistent cache as weak
@@ -6346,7 +6346,7 @@ void WebGLRenderingContextBase::preserveObjectWrapper(ScriptState* scriptState,
v8::Local<v8::Array> localCache = persistentCache->newLocal(isolate);
if (targetObject) {
- v8CallOrCrash(localCache->Set(scriptState->context(), index, targetObject->newLocalWrapper(isolate)));
+ v8CallOrCrash(localCache->Set(scriptState->context(), index, targetObject->mainWorldWrapper(isolate)));
} else {
v8CallOrCrash(localCache->Set(scriptState->context(), index, v8::Null(isolate)));
}
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698