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

Unified Diff: Source/bindings/v8/V8PerContextData.cpp

Issue 218493013: Use NewScriptState in MIDIAccessResolver, CustomElementLifecycleCallbacks and V8MutationCallbacks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/V8PerContextData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8PerContextData.cpp
diff --git a/Source/bindings/v8/V8PerContextData.cpp b/Source/bindings/v8/V8PerContextData.cpp
index 75602c07a20ce5df1cd1184769387834470f13e2..e8b1cb979bc23ee5e1ab7345165111eb4d487538 100644
--- a/Source/bindings/v8/V8PerContextData.cpp
+++ b/Source/bindings/v8/V8PerContextData.cpp
@@ -78,6 +78,11 @@ V8PerContextData::~V8PerContextData()
disposeMapWithUnsafePersistentValues(&m_constructorMap);
}
+PassOwnPtr<V8PerContextData> V8PerContextData::create(v8::Handle<v8::Context> context, PassRefPtr<DOMWrapperWorld> world)
+{
+ return adoptPtr(new V8PerContextData(context, world));
+}
+
V8PerContextData* V8PerContextData::from(v8::Handle<v8::Context> context)
{
return NewScriptState::from(context)->perContextData();
« no previous file with comments | « Source/bindings/v8/V8PerContextData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698