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

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

Issue 2674953003: Only generate suggested filenames when actually dragging an image. (Closed)
Patch Set: rebase Created 3 years, 10 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: 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 07385275214487ba6a20e3a88b079696ab80abe5..b4ff4107dbb5dd67d469fa394220495661fb804c 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -861,8 +861,7 @@ static void prepareDataTransferForImageDrag(LocalFrame* source,
.setBaseAndExtent(EphemeralRange(range))
.build());
}
- dataTransfer->declareAndWriteDragImage(
- node, !linkURL.isEmpty() ? linkURL : imageURL, label);
+ dataTransfer->declareAndWriteDragImage(node, linkURL, imageURL, label);
}
bool DragController::populateDragDataTransfer(LocalFrame* src,
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698