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

Issue 402603005: Disable touch highlight when the touched node has no hand-cursor. (Closed)

Created:
6 years, 5 months ago by mustaq
Modified:
6 years, 4 months ago
CC:
blink-reviews, wjmaclean
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Disable touch highlight when the touched node has no hand-cursor. Before these change, a missing hand-cursor at the touched node highlighted the nearest ancestor node in DOM that has such a cursor. This is not expected since the touched node may be visually detached from the ancestor. BUG=322323 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179863

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added checks for explicit non-hand cursor in an ancestor node. #

Patch Set 3 : #

Patch Set 4 : Tweaked the last heiristic for the test cases. #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : Added 2 new tests. #

Total comments: 14

Patch Set 7 : #

Patch Set 8 : Fixed logic with all tests passing. #

Total comments: 18

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : Added another tests, handled image maps inside or outside of anchors. #

Total comments: 10

Patch Set 13 : #

Patch Set 14 : #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : Reverted back to last working logic #

Total comments: 2

Messages

Total messages: 32 (0 generated)
mustaq
6 years, 5 months ago (2014-07-17 20:34:34 UTC) #1
Rick Byers
https://codereview.chromium.org/402603005/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/1/Source/web/WebViewImpl.cpp#newcode1197 Source/web/WebViewImpl.cpp:1197: // The heuristic we use is: show a highlight ...
6 years, 5 months ago (2014-07-17 21:19:03 UTC) #2
mustaq
6 years, 5 months ago (2014-07-22 20:05:08 UTC) #3
wjmaclean
lgtm with 1 nit https://codereview.chromium.org/402603005/diff/80001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/80001/Source/web/WebViewImpl.cpp#newcode1225 Source/web/WebViewImpl.cpp:1225: bestTouchNode = cursorDefiningAncestor; The logic ...
6 years, 5 months ago (2014-07-22 20:34:12 UTC) #4
Rick Byers
Please also add a new layout test case that represents the issue you're fixing (i.e. ...
6 years, 5 months ago (2014-07-22 21:10:29 UTC) #5
mustaq
On 2014/07/22 21:10:29, Rick Byers wrote: > Please also add a new layout test case ...
6 years, 5 months ago (2014-07-23 21:11:48 UTC) #6
mustaq
https://codereview.chromium.org/402603005/diff/80001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/80001/Source/web/WebViewImpl.cpp#newcode1225 Source/web/WebViewImpl.cpp:1225: bestTouchNode = cursorDefiningAncestor; On 2014/07/22 20:34:12, wjmaclean wrote: > ...
6 years, 5 months ago (2014-07-23 21:12:10 UTC) #7
Rick Byers
https://codereview.chromium.org/402603005/diff/100001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html File LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html (right): https://codereview.chromium.org/402603005/diff/100001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html#newcode2 LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html:2: <html> Note that someday we should perhaps update all ...
6 years, 5 months ago (2014-07-24 18:29:36 UTC) #8
mustaq
https://codereview.chromium.org/402603005/diff/100001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html File LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html (right): https://codereview.chromium.org/402603005/diff/100001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html#newcode2 LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html:2: <html> On 2014/07/24 18:29:36, Rick Byers wrote: > Note ...
6 years, 4 months ago (2014-07-29 18:34:50 UTC) #9
wjmaclean
https://codereview.chromium.org/402603005/diff/100001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html File LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html (right): https://codereview.chromium.org/402603005/diff/100001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html#newcode20 LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html:20: <div style="position: absolute; left: 10px; top: 250px; -webkit-transform: translateZ(0);"> ...
6 years, 4 months ago (2014-07-29 20:33:39 UTC) #10
Rick Byers
Thanks Mustaq. This is looking really good, but I think there's still one little issue. ...
6 years, 4 months ago (2014-07-30 15:35:52 UTC) #11
mustaq
https://codereview.chromium.org/402603005/diff/130001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html File LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html (right): https://codereview.chromium.org/402603005/diff/130001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html#newcode9 LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html:9: <style> On 2014/07/30 15:35:51, Rick Byers wrote: > again, ...
6 years, 4 months ago (2014-07-30 16:40:45 UTC) #12
Rick Byers
https://codereview.chromium.org/402603005/diff/130001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/130001/Source/web/WebViewImpl.cpp#newcode1206 Source/web/WebViewImpl.cpp:1206: while ((parentNode = bestTouchNode->parentNode()) != 0) { On 2014/07/30 ...
6 years, 4 months ago (2014-07-30 17:50:28 UTC) #13
mustaq
Added another test on the pointer-outside-a-link case. It was added even though it may seem ...
6 years, 4 months ago (2014-07-31 19:29:55 UTC) #14
Rick Byers
LGTM with nits and windows build fix https://codereview.chromium.org/402603005/diff/210001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/210001/Source/web/WebViewImpl.cpp#newcode1206 Source/web/WebViewImpl.cpp:1206: while ((currentNode ...
6 years, 4 months ago (2014-07-31 20:15:10 UTC) #15
mustaq
https://codereview.chromium.org/402603005/diff/210001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/210001/Source/web/WebViewImpl.cpp#newcode1206 Source/web/WebViewImpl.cpp:1206: while ((currentNode = NodeRenderingTraversal::parent(largestHandCursorNode))) { On 2014/07/31 20:15:10, Rick ...
6 years, 4 months ago (2014-07-31 21:04:49 UTC) #16
jochen (gone - plz use gerrit)
lgtm with nit https://codereview.chromium.org/402603005/diff/250001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html File LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html (right): https://codereview.chromium.org/402603005/diff/250001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html#newcode4 LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html:4: <script src="../../resources/js-test.js"></script> nit. 4 spaces indent ...
6 years, 4 months ago (2014-08-01 07:53:14 UTC) #17
mustaq
https://codereview.chromium.org/402603005/diff/250001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html File LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html (right): https://codereview.chromium.org/402603005/diff/250001/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html#newcode4 LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2-expected.html:4: <script src="../../resources/js-test.js"></script> On 2014/08/01 07:53:14, jochen wrote: > nit. ...
6 years, 4 months ago (2014-08-01 14:31:32 UTC) #18
mustaq
The CQ bit was checked by mustaq@chromium.org
6 years, 4 months ago (2014-08-01 14:33:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mustaq@chromium.org/402603005/270001
6 years, 4 months ago (2014-08-01 14:33:43 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-01 15:45:28 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 16:11:01 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/18677)
6 years, 4 months ago (2014-08-01 16:11:03 UTC) #23
Rick Byers
On 2014/07/31 21:04:49, mustaq wrote: > https://codereview.chromium.org/402603005/diff/210001/Source/web/WebViewImpl.cpp > File Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/402603005/diff/210001/Source/web/WebViewImpl.cpp#newcode1206 > ...
6 years, 4 months ago (2014-08-01 17:10:35 UTC) #24
mustaq
The CQ bit was checked by mustaq@chromium.org
6 years, 4 months ago (2014-08-08 18:22:28 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mustaq@chromium.org/402603005/290001
6 years, 4 months ago (2014-08-08 18:24:10 UTC) #26
mustaq
https://codereview.chromium.org/402603005/diff/100001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/100001/Source/web/WebViewImpl.cpp#newcode1178 Source/web/WebViewImpl.cpp:1178: if (cursor != CURSOR_AUTO || frame->eventHandler().useHandCursor(node, node->isLink())) After fixing ...
6 years, 4 months ago (2014-08-08 18:24:53 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-08 19:23:24 UTC) #28
commit-bot: I haz the power
Change committed as 179863
6 years, 4 months ago (2014-08-08 19:57:43 UTC) #29
mustaq
On 2014/08/08 18:24:53, mustaq wrote: > https://codereview.chromium.org/402603005/diff/100001/Source/web/WebViewImpl.cpp > File Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/402603005/diff/100001/Source/web/WebViewImpl.cpp#newcode1178 > ...
6 years, 4 months ago (2014-08-11 19:05:34 UTC) #30
Rick Byers
https://codereview.chromium.org/402603005/diff/290001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/402603005/diff/290001/Source/web/WebViewImpl.cpp#newcode1178 Source/web/WebViewImpl.cpp:1178: node = node->parentNode(); Note that you lost the NodeRenderingTraversal::parentNode() ...
6 years, 4 months ago (2014-08-15 18:03:12 UTC) #31
mustaq
6 years, 4 months ago (2014-08-18 14:01:01 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/402603005/diff/290001/Source/web/WebViewImpl.cpp
File Source/web/WebViewImpl.cpp (right):

https://codereview.chromium.org/402603005/diff/290001/Source/web/WebViewImpl....
Source/web/WebViewImpl.cpp:1178: node = node->parentNode();
Ooops, seems I accidentally reverted the suggestion while stepping back in the
CL. I'll fix this now.

Powered by Google App Engine
This is Rietveld 408576698