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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h

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 | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h b/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
index 476c4e36a2ec4286e3f65d01959797edfe573db7..079812501ac1421d17d7f9052c235393f55980b6 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
+++ b/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
@@ -106,7 +106,7 @@ public:
static v8::Local<v8::Object> getWrapper(Node* node, v8::Isolate* isolate)
{
if (canUseScriptWrappable(node))
- return ScriptWrappable::fromNode(node)->newLocalWrapper(isolate);
+ return ScriptWrappable::fromNode(node)->mainWorldWrapper(isolate);
return current(isolate).get(ScriptWrappable::fromNode(node), isolate);
}
@@ -149,7 +149,7 @@ public:
v8::Local<v8::Object> get(ScriptWrappable* object, v8::Isolate* isolate)
{
if (m_isMainWorld)
- return object->newLocalWrapper(isolate);
+ return object->mainWorldWrapper(isolate);
return m_wrapperMap->newLocal(isolate, object);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698