Fix build.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2017 18:45:10 +0000 (18:45 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2017 18:45:10 +0000 (18:45 +0000)
* page/DragController.cpp:
(WebCore::DragController::doSystemDrag):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212380 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/DragController.cpp

index b19898a..bfbb9d0 100644 (file)
@@ -1,5 +1,12 @@
 2017-02-15  Anders Carlsson  <andersca@apple.com>
 
+        Fix build.
+
+        * page/DragController.cpp:
+        (WebCore::DragController::doSystemDrag):
+
+2017-02-15  Anders Carlsson  <andersca@apple.com>
+
         Modernize DragClient::startDrag somewhat
         https://bugs.webkit.org/show_bug.cgi?id=168379
 
index 8fbc009..0672825 100644 (file)
@@ -1008,7 +1008,7 @@ void DragController::doImageDrag(Element& element, const IntPoint& dragOrigin, c
 void DragController::doSystemDrag(DragImage image, const IntPoint& dragLoc, const IntPoint& eventPos, const IntRect& dragImageBounds, DataTransfer& dataTransfer, Frame& frame, DragSourceAction dragSourceAction)
 {
     FloatPoint dragImageAnchor = { 0.5, 0.5 };
-    if (forLink)
+    if (dragSourceAction == DragSourceActionLink)
         dragImageAnchor.setY(1);
     else if (!dragImageBounds.isEmpty()) {
         dragImageAnchor.setX((eventPos.x() - dragImageBounds.x()) / (float)dragImageBounds.width());