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

Unified Diff: Source/web/DragClientImpl.cpp

Issue 925913002: Fixed WebDragData's wrong dependency. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/web/DragClientImpl.cpp
diff --git a/Source/web/DragClientImpl.cpp b/Source/web/DragClientImpl.cpp
index 9b75f1223215a8a08b50709c8356886798b5b8e6..d92ab03e50f340d7e2cabee6bb86e58ac3d74ad3 100644
--- a/Source/web/DragClientImpl.cpp
+++ b/Source/web/DragClientImpl.cpp
@@ -63,7 +63,7 @@ void DragClientImpl::startDrag(DragImage* dragImage, const IntPoint& dragImageOr
// Add a ref to the frame just in case a load occurs mid-drag.
RefPtrWillBeRawPtr<LocalFrame> frameProtector(frame);
- WebDragData dragData(dataTransfer->dataObject());
+ WebDragData dragData = dataTransfer->dataObject()->toWebDragData();
WebDragOperationsMask dragOperationMask = static_cast<WebDragOperationsMask>(dataTransfer->sourceOperation());
WebImage image;
IntSize offsetSize(eventPos - dragImageOrigin);

Powered by Google App Engine
This is Rietveld 408576698