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

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: Modified assert 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 505c055926717420d2ddbc9569eb29539f4fc626..f7a4ee3cfa1af231911e0a3e73998e3b2d99854e 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -137,6 +137,7 @@ public:
void stopPropagation() { m_propagationStopped = true; }
void stopImmediatePropagation() { m_immediatePropagationStopped = true; }
+ void unsetInitializedFlag() { m_initialized = false; }
// IE Extensions
EventTarget* srcElement() const { return target(); } // MSIE extension - "the object that fired the event"
@@ -170,6 +171,7 @@ public:
bool propagationStopped() const { return m_propagationStopped || m_immediatePropagationStopped; }
bool immediatePropagationStopped() const { return m_immediatePropagationStopped; }
+ bool initialized() { return m_initialized; }
tkent 2016/05/02 00:19:27 This function should be named as |wasInitialized()
ramya.v 2016/05/02 05:31:44 Done.
bool defaultPrevented() const { return m_defaultPrevented; }
virtual void preventDefault();
@@ -239,6 +241,7 @@ private:
unsigned m_defaultPrevented:1;
unsigned m_defaultHandled:1;
unsigned m_cancelBubble:1;
+ unsigned m_initialized:1;
tkent 2016/05/02 00:19:27 This member should be named as |m_wasInitialized|
ramya.v 2016/05/02 05:31:44 Done.
unsigned m_isTrusted : 1;
unsigned m_handlingPassive : 1;

Powered by Google App Engine
This is Rietveld 408576698