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

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

Issue 1013303003: Preventing the default action on 'mousemove' listener shouldn't prevent selection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 3a814755d7063086c16088f52dbb1025f3559522..deb81cfceb5027addc30ef972b19533426a21b33 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -1497,10 +1497,11 @@ bool EventHandler::handleMouseMoveOrLeaveEvent(const PlatformMouseEvent& mouseEv
return true;
swallowEvent = !dispatchMouseEvent(EventTypeNames::mousemove, mev.innerNode(), 0, mouseEvent, true);
- if (!swallowEvent)
- swallowEvent = handleMouseDraggedEvent(mev);
- return swallowEvent;
+ // http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mousemove
+ // Since there is no default action for mousemove event as per spec,
+ // irrespective of event is cancelled or not there should be no differenece
+ return handleMouseDraggedEvent(mev);
}
void EventHandler::invalidateClick()

Powered by Google App Engine
This is Rietveld 408576698