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

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

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
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 | « trunk/Source/bindings/v8/V8AbstractEventListener.h ('k') | trunk/Source/bindings/v8/V8Binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/bindings/v8/V8AbstractEventListener.cpp
===================================================================
--- trunk/Source/bindings/v8/V8AbstractEventListener.cpp (revision 170423)
+++ trunk/Source/bindings/v8/V8AbstractEventListener.cpp (working copy)
@@ -43,7 +43,7 @@
namespace WebCore {
-V8AbstractEventListener::V8AbstractEventListener(bool isAttribute, DOMWrapperWorld* world, v8::Isolate* isolate)
+V8AbstractEventListener::V8AbstractEventListener(bool isAttribute, DOMWrapperWorld& world, v8::Isolate* isolate)
: EventListener(JSEventListenerType)
, m_isAttribute(isAttribute)
, m_world(world)
@@ -177,7 +177,7 @@
bool V8AbstractEventListener::belongsToTheCurrentWorld() const
{
- return m_isolate->InContext() && m_world == DOMWrapperWorld::current(m_isolate);
+ return m_isolate->InContext() && m_world == &DOMWrapperWorld::current(m_isolate);
}
void V8AbstractEventListener::setWeakCallback(const v8::WeakCallbackData<v8::Object, V8AbstractEventListener> &data)
« no previous file with comments | « trunk/Source/bindings/v8/V8AbstractEventListener.h ('k') | trunk/Source/bindings/v8/V8Binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698