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

Issue 353893002: Remove mouse-related hit tests during a GestureTap (Closed)

Created:
6 years, 6 months ago by Rick Byers
Modified:
6 years, 5 months ago
Reviewers:
Zeeshan Qureshi
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch, esprehn, chrishtr
Project:
blink
Visibility:
Public.

Description

Remove mouse-related hit tests during a GestureTap This further reduces the total number of hit tests in trivial tap scenarios from 9 to 6. It looks like all the work we do with un-hit-tested mouse events is really mouse specific and probably not something we want in the tap case. So we can bump our emulation down to a lower level without having to otherwise refactor the existing code. This change is observable by web applications. For example, if a mousedown event handler modifies the DOM, then previously the mouseup and click events would be sent to the new element under the point. Now all the events that happen as a result of a tap will be sent to the same node. Since they all happen at the same conceptual moment, this change is probably a net improvement. But we'll need to watch for any scenarios that regress. BUG=381728 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178098

Patch Set 1 #

Patch Set 2 : Add deleted-during-dispatch test #

Total comments: 2

Patch Set 3 : Tweak test description #

Patch Set 4 : Fix release build #

Patch Set 5 : Merge with trunk #

Patch Set 6 : Add UserGestureIndicator #

Patch Set 7 : Fix text selection behavior #

Patch Set 8 : Also test tap handled state in the test #

Patch Set 9 : Improve focus test #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -27 lines) Patch
M LayoutTests/fast/events/hit-test-counts-expected.txt View 1 3 chunks +3 lines, -3 lines 0 comments Download
A LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html View 1 2 3 4 5 6 7 8 1 chunk +115 lines, -0 lines 3 comments Download
A LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed-expected.txt View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 10 chunks +33 lines, -24 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Rick Byers
Zeeshan, when you're done with https://codereview.chromium.org/338543003, please take a look at this CL which builds ...
6 years, 6 months ago (2014-06-25 18:14:53 UTC) #1
Zeeshan Qureshi
lgtm, so this would stop the dispatch if the target node is deleted on mousedown?
6 years, 6 months ago (2014-06-26 06:06:53 UTC) #2
Rick Byers
On 2014/06/26 06:06:53, Zeeshan Qureshi wrote: > lgtm, so this would stop the dispatch if ...
6 years, 6 months ago (2014-06-26 21:05:28 UTC) #3
Zeeshan Qureshi
Looks good. https://codereview.chromium.org/353893002/diff/20001/LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html File LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html (right): https://codereview.chromium.org/353893002/diff/20001/LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html#newcode57 LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html:57: description("Verifies that deleting the element being tapped ...
6 years, 6 months ago (2014-06-26 21:20:51 UTC) #4
Rick Byers
Thanks. https://codereview.chromium.org/353893002/diff/20001/LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html File LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html (right): https://codereview.chromium.org/353893002/diff/20001/LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html#newcode57 LayoutTests/fast/events/touch/gesture/gesture-tap-div-removed.html:57: description("Verifies that deleting the element being tapped during ...
6 years, 6 months ago (2014-06-26 21:29:01 UTC) #5
Rick Byers
I've been trying to polish this up while on vacation, but the interaction with touch ...
6 years, 5 months ago (2014-07-02 17:03:51 UTC) #6
Zeeshan Qureshi
On 2014/07/02 17:03:51, Rick Byers wrote: > I've been trying to polish this up while ...
6 years, 5 months ago (2014-07-05 03:16:25 UTC) #7
Rick Byers
On 2014/07/05 03:16:25, Zeeshan Qureshi wrote: > On 2014/07/02 17:03:51, Rick Byers wrote: > > ...
6 years, 5 months ago (2014-07-14 17:35:57 UTC) #8
Zeeshan Qureshi
Looks good, one nit though: https://codereview.chromium.org/353893002/diff/160001/LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html File LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html (right): https://codereview.chromium.org/353893002/diff/160001/LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html#newcode58 LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html:58: // Run any pending ...
6 years, 5 months ago (2014-07-14 19:08:42 UTC) #9
Rick Byers
https://codereview.chromium.org/353893002/diff/160001/LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html File LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html (right): https://codereview.chromium.org/353893002/diff/160001/LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html#newcode58 LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html:58: // Run any pending tasks before resolving the promise. ...
6 years, 5 months ago (2014-07-14 19:40:00 UTC) #10
Zeeshan Qureshi
https://codereview.chromium.org/353893002/diff/160001/LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html File LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html (right): https://codereview.chromium.org/353893002/diff/160001/LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html#newcode58 LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap.html:58: // Run any pending tasks before resolving the promise. ...
6 years, 5 months ago (2014-07-14 19:46:05 UTC) #11
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 5 months ago (2014-07-14 19:47:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/353893002/160001
6 years, 5 months ago (2014-07-14 19:48:29 UTC) #13
commit-bot: I haz the power
Change committed as 178098
6 years, 5 months ago (2014-07-14 19:52:29 UTC) #14
Zeeshan Qureshi
6 years, 5 months ago (2014-07-14 19:55:42 UTC) #15
Message was sent while issue was closed.
On 2014/07/14 19:52:29, I haz the power (commit-bot) wrote:
> Change committed as 178098

That was the fastest commit I've seen!

Powered by Google App Engine
This is Rietveld 408576698