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

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

Issue 14297007: Make DOMWrapperWorlds easier to use (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/V8Binding.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8MutationCallback.cpp
diff --git a/Source/bindings/v8/V8MutationCallback.cpp b/Source/bindings/v8/V8MutationCallback.cpp
index 75c1937910c0e0eec8f15dfad4e8d6a9816a775c..6618cc37cb342fb15cf26cb974f927e52c3afd09 100644
--- a/Source/bindings/v8/V8MutationCallback.cpp
+++ b/Source/bindings/v8/V8MutationCallback.cpp
@@ -44,7 +44,7 @@ void WeakHandleListener<V8MutationCallback>::callback(v8::Isolate*, v8::Persiste
V8MutationCallback::V8MutationCallback(v8::Handle<v8::Function> callback, ScriptExecutionContext* context, v8::Handle<v8::Object> owner, v8::Isolate* isolate)
: ActiveDOMCallback(context)
, m_callback(callback)
- , m_world(DOMWrapperWorld::isolatedWorld(v8::Context::GetCurrent()))
+ , m_world(DOMWrapperWorld::current(context))
{
owner->SetHiddenValue(V8HiddenPropertyName::callback(), callback);
WeakHandleListener<V8MutationCallback>::makeWeak(isolate, m_callback.get(), this);
« no previous file with comments | « Source/bindings/v8/V8Binding.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698