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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.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
Index: third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp
index 4f0c1913b21df8d96ee73bdd4e169bd2d74754f8..abd07aac4fd4805e7f2c117035a06535eefed0db 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp
@@ -12,7 +12,7 @@ namespace blink {
struct SameSizeAsScriptWrappable {
virtual ~SameSizeAsScriptWrappable() { }
- v8::Persistent<v8::Object> m_wrapper;
+ v8::Persistent<v8::Object> m_mainWorldWrapper;
};
static_assert(sizeof(ScriptWrappable) <= sizeof(SameSizeAsScriptWrappable), "ScriptWrappable should stay small");
@@ -39,7 +39,7 @@ v8::Local<v8::Object> ScriptWrappable::associateWithWrapper(v8::Isolate* isolate
void ScriptWrappable::markWrapper(v8::Isolate* isolate) const
{
if (containsWrapper())
- ScriptWrappableVisitor::markWrapper(&m_wrapper, isolate);
+ ScriptWrappableVisitor::markWrapper(&m_mainWorldWrapper, isolate);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698