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

Unified Diff: third_party/WebKit/Source/core/events/EventListener.h

Issue 2851053002: Fix detached event listener attribute updating. (Closed)
Patch Set: Push Document lookup down Created 3 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: third_party/WebKit/Source/core/events/EventListener.h
diff --git a/third_party/WebKit/Source/core/events/EventListener.h b/third_party/WebKit/Source/core/events/EventListener.h
index 03045cc1b10129802b8b39f17427aae73eb4718d..293362b9750ffce5bc9ed488e582947523c8dbdf 100644
--- a/third_party/WebKit/Source/core/events/EventListener.h
+++ b/third_party/WebKit/Source/core/events/EventListener.h
@@ -27,6 +27,7 @@
namespace blink {
+class Document;
class Event;
class ExecutionContext;
@@ -46,9 +47,7 @@ class CORE_EXPORT EventListener
virtual void handleEvent(ExecutionContext*, Event*) = 0;
virtual const String& Code() const { return g_empty_string; }
virtual bool WasCreatedFromMarkup() const { return false; }
- virtual bool BelongsToTheCurrentWorld(ExecutionContext*) const {
- return false;
- }
+ virtual bool BelongsToTheCurrentWorld(Document*) const { return false; }
virtual bool IsAttribute() const { return false; }
ListenerType GetType() const { return type_; }

Powered by Google App Engine
This is Rietveld 408576698