RESOLVED FIXED 99862
[chromium] Restrict link highlights to targets that display a hand-cursor
https://bugs.webkit.org/show_bug.cgi?id=99862
Summary [chromium] Restrict link highlights to targets that display a hand-cursor
W. James MacLean
Reported 2012-10-19 12:14:34 PDT
[chromium] Restrict link highlights to targets that display a hand-cursor
Attachments
Patch (10.28 KB, patch)
2012-10-19 12:18 PDT, W. James MacLean
no flags
Patch (12.93 KB, patch)
2012-10-19 12:40 PDT, W. James MacLean
no flags
Patch (16.49 KB, patch)
2012-10-30 10:29 PDT, W. James MacLean
no flags
W. James MacLean
Comment 1 2012-10-19 12:18:56 PDT
W. James MacLean
Comment 2 2012-10-19 12:40:55 PDT
W. James MacLean
Comment 3 2012-10-19 12:41:43 PDT
Add fixed to rotated div layout test in this revised patch.
James Robinson
Comment 4 2012-10-19 12:54:53 PDT
Comment on attachment 169676 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169676&action=review > Source/WebKit/chromium/src/WebViewImpl.cpp:1179 > +static bool invokesHandCursor(Node* node, bool shiftKey) This seems like a strange heuristic to be applying in the WebKit layer. Normally this is the sort of decision that WebCore would make.
W. James MacLean
Comment 5 2012-10-22 09:35:19 PDT
(In reply to comment #4) > (From update of attachment 169676 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=169676&action=review > > > Source/WebKit/chromium/src/WebViewImpl.cpp:1179 > > +static bool invokesHandCursor(Node* node, bool shiftKey) > > This seems like a strange heuristic to be applying in the WebKit layer. Normally this is the sort of decision that WebCore would make. Agreed, but there doesn't seem to be a simple way to ask WebCore if a particular node *would* get a hand cursor (I looked at re-factoring EventHandler::selectCursor() to see if I could separate the logic used for auto-cursor selection in a way that would allow it to be used externally, but it seemed difficult to get a clean re-factoring). I can present a CL based on this if you prefer.
James Robinson
Comment 6 2012-10-22 19:17:57 PDT
(In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 169676 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=169676&action=review > > > > > Source/WebKit/chromium/src/WebViewImpl.cpp:1179 > > > +static bool invokesHandCursor(Node* node, bool shiftKey) > > > > This seems like a strange heuristic to be applying in the WebKit layer. Normally this is the sort of decision that WebCore would make. > > Agreed, but there doesn't seem to be a simple way to ask WebCore if a particular node *would* get a hand cursor (I looked at re-factoring EventHandler::selectCursor() to see if I could separate the logic used for auto-cursor selection in a way that would allow it to be used externally, but it seemed difficult to get a clean re-factoring). I can present a CL based on this if you prefer. I'd like to explore that direction. This case seems very similar. We're doing a hit-test and want to see what the resulting cursor is.
W. James MacLean
Comment 7 2012-10-30 10:29:04 PDT
W. James MacLean
Comment 8 2012-10-30 10:30:57 PDT
I've re-factored this to keep all the logic for determining when a handCursor() is appropriate in EventHandler, short of consulting node->style()-cursor(). PTAL.
James Robinson
Comment 9 2012-10-30 13:55:23 PDT
Comment on attachment 171481 [details] Patch R=me
WebKit Review Bot
Comment 10 2012-10-30 14:29:53 PDT
Comment on attachment 171481 [details] Patch Clearing flags on attachment: 171481 Committed r132945: <http://trac.webkit.org/changeset/132945>
WebKit Review Bot
Comment 11 2012-10-30 14:29:56 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.