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

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

Issue 1929843002: Events should have an initialized flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 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/Event.h
diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h
index 4d4362463d2b253ddaa2489c94e6dfd14a8c6a41..00ab3f03dadc394513f8f7520dc7c55aed329dfc 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -170,6 +170,7 @@ public:
bool propagationStopped() const { return m_propagationStopped || m_immediatePropagationStopped; }
bool immediatePropagationStopped() const { return m_immediatePropagationStopped; }
+ bool wasInitialized() { return m_wasInitialized; }
bool defaultPrevented() const { return m_defaultPrevented; }
virtual void preventDefault();
@@ -238,6 +239,7 @@ private:
unsigned m_defaultPrevented:1;
unsigned m_defaultHandled:1;
unsigned m_cancelBubble:1;
+ unsigned m_wasInitialized:1;
unsigned m_isTrusted : 1;
unsigned m_handlingPassive : 1;

Powered by Google App Engine
This is Rietveld 408576698