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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2326653003: Conditional hittesting & sending boundary events for captured pointer events (Closed)
Patch Set: Created 4 years, 3 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 | third_party/WebKit/Source/core/input/PointerEventManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 34af1394795db9d870cd30cf955df3490c0420d5..7698daaf1bf4a4dabb5632e62002e3c850e1639c 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1384,7 +1384,9 @@ Node* EventHandler::updateMouseEventTargetNode(Node* targetNode,
Node* newNodeUnderMouse = targetNode;
// If we're capturing, we always go right to that node.
- if (EventTarget* mousePointerCapturingNode = m_pointerEventManager->getMouseCapturingNode()) {
dtapuska 2016/09/09 16:01:07 I think it is cleaner to store the mousePointerCap
Navid Zolghadr 2016/09/09 16:03:38 Then I have to store it outside the scope of the i
+ if (m_pointerEventManager->getMouseCapturingNode()
+ && !RuntimeEnabledFeatures::pointerEventV1SpecCapturingEnabled()) {
+ EventTarget* mousePointerCapturingNode = m_pointerEventManager->getMouseCapturingNode();
newNodeUnderMouse = mousePointerCapturingNode->toNode();
DCHECK(newNodeUnderMouse);
} else if (m_capturingMouseEventsNode) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/PointerEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698