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

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

Issue 2536563003: Fix missing warning for canceling touchmove when in default not passive mode. (Closed)
Patch Set: Fix test Created 4 years, 1 month 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 | « third_party/WebKit/LayoutTests/fast/events/touch/touch-event-cancelable-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/TouchEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/TouchEvent.cpp b/third_party/WebKit/Source/core/events/TouchEvent.cpp
index 7a0a36f0f9d5068e153ba1e9eb01c5446c70df0d..cc0071857775722f6dd0adcd95ac5efecdcfca0a 100644
--- a/third_party/WebKit/Source/core/events/TouchEvent.cpp
+++ b/third_party/WebKit/Source/core/events/TouchEvent.cpp
@@ -263,6 +263,7 @@ void TouchEvent::preventDefault() {
String warningMessage;
switch (handlingPassive()) {
case PassiveMode::NotPassive:
+ case PassiveMode::NotPassiveDefault:
if (!cancelable()) {
warningMessage = "Ignored attempt to cancel a " + type() +
" event with cancelable=false, for example "
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/touch/touch-event-cancelable-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698