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

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

Issue 1728093007: Make Event.deepPath() return an empty array if an event is no longer being dispatched (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 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
Index: third_party/WebKit/Source/core/events/Event.h
diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h
index e447f5d3372663c4dcb7d470fa593c6cb6200c7d..ab661b86a34760bbb31f99743b9d4e20d4a74200 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -187,6 +187,7 @@ public:
void initEventPath(Node&);
WillBeHeapVector<RefPtrWillBeMember<EventTarget>> path(ScriptState*) const;
+ WillBeHeapVector<RefPtrWillBeMember<EventTarget>> deepPath(ScriptState*) const;
bool isBeingDispatched() const { return eventPhase(); }
@@ -217,6 +218,13 @@ protected:
void setCanBubble(bool bubble) { m_canBubble = bubble; }
private:
+ enum EventPathMode {
+ EmptyAfterDispatch,
+ NonEmptyAfterDispatch
+ };
+
+ WillBeHeapVector<RefPtrWillBeMember<EventTarget>> pathInternal(ScriptState*, EventPathMode) const;
+
AtomicString m_type;
unsigned m_canBubble:1;
unsigned m_cancelable:1;

Powered by Google App Engine
This is Rietveld 408576698