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

Unified Diff: Source/core/events/MouseEvent.cpp

Issue 918553002: Initialize all MouseEvent members in all constructors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/MouseEvent.cpp
diff --git a/Source/core/events/MouseEvent.cpp b/Source/core/events/MouseEvent.cpp
index a8f3637c9390660a62932f9f6caaa8761e135e37..07bd240a93c099761a8f55f91c39a422dd3a3e96 100644
--- a/Source/core/events/MouseEvent.cpp
+++ b/Source/core/events/MouseEvent.cpp
@@ -70,6 +70,9 @@ MouseEvent::MouseEvent()
: m_button(0)
, m_buttons(0)
, m_buttonDown(false)
+ , m_relatedTarget(nullptr)
+ , m_dataTransfer(nullptr)
+ , m_syntheticEventType(PlatformMouseEvent::RealOrIndistinguishable)
{
}
@@ -104,6 +107,7 @@ MouseEvent::MouseEvent(const AtomicString& eventType, const MouseEventInit& init
, m_buttonDown(initializer.button() != (unsigned short)-1)
, m_relatedTarget(initializer.relatedTarget())
, m_dataTransfer(nullptr)
+ , m_syntheticEventType(PlatformMouseEvent::RealOrIndistinguishable)
{
initCoordinates(IntPoint(initializer.clientX(), initializer.clientY()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698