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

Unified Diff: third_party/WebKit/Source/core/input/MouseEventManager.h

Issue 2894963002: Gather UMA for click retarget due to DOM changes (Closed)
Patch Set: Add boolean to the type of the histogram Created 3 years, 7 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/input/MouseEventManager.h
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.h b/third_party/WebKit/Source/core/input/MouseEventManager.h
index 1da2755986403ea5287d71005668d8ba6b10209f..6836bbab0596b0fdd27692d1b97703237a2c8949 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.h
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.h
@@ -226,6 +226,10 @@ class CORE_EXPORT MouseEventManager final
int click_count_;
Member<Element> click_element_;
+ // This element should be mostly the same as click_element_. Only when
+ // click_element_ is set to null due to DOM manipulation mouse_down_element_
+ // remains unchanged.
+ Member<Element> mouse_down_element_;
IntPoint mouse_down_pos_; // In our view's coords.
TimeTicks mouse_down_timestamp_;

Powered by Google App Engine
This is Rietveld 408576698