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

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

Issue 14334002: Delete WorldContextHandle in favor of DOMWrapperWorld (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
Index: Source/bindings/v8/V8AbstractEventListener.h
diff --git a/Source/bindings/v8/V8AbstractEventListener.h b/Source/bindings/v8/V8AbstractEventListener.h
index e13565d6e1e4f80fa1bed8dd0944efc0ded7ede8..2c79bdaa3ced99732b62010215271ced1c135be9 100644
--- a/Source/bindings/v8/V8AbstractEventListener.h
+++ b/Source/bindings/v8/V8AbstractEventListener.h
@@ -31,10 +31,10 @@
#ifndef V8AbstractEventListener_h
#define V8AbstractEventListener_h
+#include "DOMWrapperWorld.h"
#include "EventListener.h"
#include "ScopedPersistent.h"
#include "V8Utilities.h"
-#include "WorldContextHandle.h"
#include <v8.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
@@ -105,10 +105,10 @@ namespace WebCore {
return !m_listener.isEmpty();
}
- const WorldContextHandle& worldContext() const { return m_worldContext; }
+ DOMWrapperWorld* world() const { return m_world.get(); }
protected:
- V8AbstractEventListener(bool isAttribute, const WorldContextHandle&, v8::Isolate*);
+ V8AbstractEventListener(bool isAttribute, PassRefPtr<DOMWrapperWorld>, v8::Isolate*);
virtual void prepareListenerObject(ScriptExecutionContext*) { }
@@ -134,7 +134,7 @@ namespace WebCore {
// Indicates if this is an HTML type listener.
bool m_isAttribute;
- WorldContextHandle m_worldContext;
+ RefPtr<DOMWrapperWorld> m_world;
v8::Isolate* m_isolate;
};

Powered by Google App Engine
This is Rietveld 408576698