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/input/EventHandler.cpp

Issue 2521993003: Send boundary events before gotpointercapture (Closed)
Patch Set: Fix the tests Created 4 years 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/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index ac0930c6bd6e73133a8c8087244a502285c15bcd..90df1f3c7e339f05d9bb1f25ceb1b0f070dacd8d 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1188,12 +1188,7 @@ void EventHandler::setCapturingMouseEventsNode(Node* n) {
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()) {
- newNodeUnderMouse = mousePointerCapturingNode->toNode();
- DCHECK(newNodeUnderMouse);
- } else if (m_capturingMouseEventsNode) {
+ if (m_capturingMouseEventsNode) {
newNodeUnderMouse = m_capturingMouseEventsNode.get();
} else {
// If the target node is a text node, dispatch on the parent node -

Powered by Google App Engine
This is Rietveld 408576698