<rdar://problem/7696607> Links do not respect -webkit-user-drag: none
https://bugs.webkit.org/show_bug.cgi?id=35475

Reviewed by Maciej Stachowiak.

WebCore: 

Test: fast/css/user-drag-none.html

* page/DragController.cpp:
(WebCore::DragController::mayStartDragAtEventLocation): Added a node
parameter. The image drag check is done against the node, rather than
than against the hit test result. This prevents a non-draggable image
with an auto-draggable ancestor from being dragged alone. The link drag
check now ignores links that are -webkit-user-drag: none.
* page/DragController.h:
* page/EventHandler.cpp:
(WebCore::EventHandler::shouldDragAutoNode): Pass the current node
to mayStartDragAtEventLocation().

LayoutTests: 

* fast/css/user-drag-none-expected.txt: Added.
* fast/css/user-drag-none.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fast/css/user-drag-none-expected.txt b/LayoutTests/fast/css/user-drag-none-expected.txt
new file mode 100644
index 0000000..b571874
--- /dev/null
+++ b/LayoutTests/fast/css/user-drag-none-expected.txt
@@ -0,0 +1,77 @@
+
+
+
+x
+y
+x
+y
+x
+y
+x
+y
+x
+y
+x
+y
+x
+y
+x
+y
+Test #0
+PASS
+PASS
+Test #1
+PASS
+PASS
+Test #2
+PASS
+PASS
+Test #3
+PASS
+PASS
+PASS
+PASS
+PASS
+Test #4
+PASS
+PASS
+PASS
+PASS
+PASS
+Test #5
+PASS
+PASS
+PASS
+PASS
+PASS
+Test #6
+PASS
+PASS
+PASS
+PASS
+PASS
+Test #7
+PASS
+PASS
+PASS
+PASS
+PASS
+Test #8
+PASS
+PASS
+PASS
+PASS
+PASS
+Test #9
+PASS
+PASS
+PASS
+PASS
+PASS
+Test #10
+PASS
+PASS
+PASS
+PASS
+PASS
+