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

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

Issue 149803005: Remove isolated world parameters from event listener attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/V8AbstractEventListener.h ('k') | Source/bindings/v8/V8EventListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8AbstractEventListener.cpp
diff --git a/Source/bindings/v8/V8AbstractEventListener.cpp b/Source/bindings/v8/V8AbstractEventListener.cpp
index c1505fd7c52751082bd4008b96cb35a696e07b88..93134d5f8ae0f0588fc5dfe595f204900e5bf0f2 100644
--- a/Source/bindings/v8/V8AbstractEventListener.cpp
+++ b/Source/bindings/v8/V8AbstractEventListener.cpp
@@ -179,6 +179,11 @@ v8::Local<v8::Object> V8AbstractEventListener::getReceiverObject(ExecutionContex
return v8::Local<v8::Object>::New(isolate, v8::Handle<v8::Object>::Cast(value));
}
+bool V8AbstractEventListener::belongsToTheCurrentWorld() const
+{
+ return m_isolate->InContext() && m_world == DOMWrapperWorld::current(m_isolate);
+}
+
void V8AbstractEventListener::setWeakCallback(const v8::WeakCallbackData<v8::Object, V8AbstractEventListener> &data)
{
data.GetParameter()->m_listener.clear();
« no previous file with comments | « Source/bindings/v8/V8AbstractEventListener.h ('k') | Source/bindings/v8/V8EventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698