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

Unified Diff: third_party/WebKit/Source/core/events/NodeEventContext.cpp

Issue 2007733003: Add UMA metric for tracking root level listeners for blocking touch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 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/events/NodeEventContext.cpp
diff --git a/third_party/WebKit/Source/core/events/NodeEventContext.cpp b/third_party/WebKit/Source/core/events/NodeEventContext.cpp
index 318569f0c9229236f7ecfef73a15de0a23937329..3d6e52f851fc1575b07e44046df86ee6266e9a1b 100644
--- a/third_party/WebKit/Source/core/events/NodeEventContext.cpp
+++ b/third_party/WebKit/Source/core/events/NodeEventContext.cpp
@@ -50,8 +50,8 @@ DEFINE_TRACE(NodeEventContext)
void NodeEventContext::handleLocalEvents(Event& event) const
{
- if (touchEventContext()) {
- touchEventContext()->handleLocalEvents(event);
+ if (TouchEventContext* touchContext = touchEventContext()) {
+ touchContext->handleLocalEvents(event);
} else if (relatedTarget()) {
if (event.isMouseEvent()) {
toMouseEvent(event).setRelatedTarget(relatedTarget());
« no previous file with comments | « third_party/WebKit/Source/core/events/EventTarget.cpp ('k') | third_party/WebKit/Source/core/events/TouchEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698