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

Unified Diff: Source/core/dom/EventListener.h

Issue 16904002: Avoid leaking objects between isolated worlds via attribute event listeners (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 6 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/core/dom/Document.cpp ('k') | Source/core/dom/EventTarget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/EventListener.h
diff --git a/Source/core/dom/EventListener.h b/Source/core/dom/EventListener.h
index 1708a73c3fcca671b3ab163b0ccd0c955dd74f73..a1add8c6dc8f896b2d1459b0848841fbba7b3779 100644
--- a/Source/core/dom/EventListener.h
+++ b/Source/core/dom/EventListener.h
@@ -25,8 +25,9 @@
namespace WebCore {
- class ScriptExecutionContext;
+ class DOMWrapperWorld;
class Event;
+ class ScriptExecutionContext;
class EventListener : public RefCounted<EventListener> {
public:
@@ -45,6 +46,7 @@ namespace WebCore {
virtual bool operator==(const EventListener&) = 0;
virtual void handleEvent(ScriptExecutionContext*, Event*) = 0;
virtual bool wasCreatedFromMarkup() const { return false; }
+ virtual DOMWrapperWorld* world() const { return 0; }
bool isAttribute() const { return virtualisAttribute(); }
Type type() const { return m_type; }
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/EventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698