Title: [212380] trunk/Source/WebCore
- Revision
- 212380
- Author
- ander...@apple.com
- Date
- 2017-02-15 10:45:10 -0800 (Wed, 15 Feb 2017)
Log Message
Fix build.
* page/DragController.cpp:
(WebCore::DragController::doSystemDrag):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (212379 => 212380)
--- trunk/Source/WebCore/ChangeLog 2017-02-15 18:31:00 UTC (rev 212379)
+++ trunk/Source/WebCore/ChangeLog 2017-02-15 18:45:10 UTC (rev 212380)
@@ -1,5 +1,12 @@
2017-02-15 Anders Carlsson <ander...@apple.com>
+ Fix build.
+
+ * page/DragController.cpp:
+ (WebCore::DragController::doSystemDrag):
+
+2017-02-15 Anders Carlsson <ander...@apple.com>
+
Modernize DragClient::startDrag somewhat
https://bugs.webkit.org/show_bug.cgi?id=168379
Modified: trunk/Source/WebCore/page/DragController.cpp (212379 => 212380)
--- trunk/Source/WebCore/page/DragController.cpp 2017-02-15 18:31:00 UTC (rev 212379)
+++ trunk/Source/WebCore/page/DragController.cpp 2017-02-15 18:45:10 UTC (rev 212380)
@@ -1008,7 +1008,7 @@
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());
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes