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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 643143003: Reset all EventHandler data members in EventHandler::clear() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add additional comment regarding usage of clear() Created 6 years, 1 month 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 | « Source/core/page/EventHandler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 824ae35d027e5e07ee0809738e5ffff2216c2d3b..822f28a2e5ebb5e503a76e73c21dee69106a853e 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -304,6 +304,19 @@ void EventHandler::clear()
m_mouseDownMayStartDrag = false;
m_lastShowPressTimestamp = 0;
m_lastDeferredTapElement = nullptr;
+ m_eventHandlerWillResetCapturingMouseEventsNode = false;
+ m_mouseDownWasSingleClickInSelection = false;
+ m_selectionInitiationState = HaveNotStartedSelection;
+ m_mouseDownMayStartAutoscroll = false;
+ m_svgPan = false;
+ m_mouseDownPos = IntPoint();
+ m_mouseDownTimestamp = 0;
+ m_longTapShouldInvokeContextMenu = false;
+ m_dragStartPos = LayoutPoint();
+ m_offsetFromResizeCorner = LayoutSize();
+ m_currentMouseCursor = Cursor();
+ m_mouseDown = PlatformMouseEvent();
+
}
void EventHandler::nodeWillBeRemoved(Node& nodeToBeRemoved)
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698