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

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2030683003: Don't pick a drop operation that the source doesn't support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | 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/page/DragController.cpp
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
index 3b559f9366ee8eba8cf1cfd56db82e9e2adfc328..53e7ade6b52c6b189cce80e33910b86c652e5335 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -580,7 +580,7 @@ static DragOperation defaultOperationForDrag(DragOperation srcOpMask)
return DragOperationCopy;
if (srcOpMask == DragOperationNone)
return DragOperationNone;
- if (srcOpMask & DragOperationMove || srcOpMask & DragOperationGeneric)
+ if (srcOpMask & DragOperationMove)
return DragOperationMove;
if (srcOpMask & DragOperationCopy)
return DragOperationCopy;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698