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

Issue 641063003: Pass correct client coordinates for mouse events synthesized from a GestureTap (Closed)

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

Description

Pass correct client coordinates for mouse events synthesized from a GestureTap After re-adding the extra hit-tests on GestureTap in crrev.com/429793004 the scroll offset was being added twice to the synthesized mouse events. This went unnoticed because the target had already been determined in earlier hit-tests and so the event was dispatch to the proper target but with the wrong coordinates. This CL fixes that to match the exact coordinates that native mouse events would report. BUG=418800 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183699

Patch Set 1 #

Patch Set 2 : Update expectations #

Patch Set 3 : Update test output #

Total comments: 6

Patch Set 4 : Rebase ToT #

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -54 lines) Patch
M LayoutTests/fast/events/touch/gesture/gesture-tap-frame-scrolled.html View 1 2 3 4 3 chunks +29 lines, -14 lines 0 comments Download
M LayoutTests/fast/events/touch/gesture/gesture-tap-frame-scrolled-expected.txt View 1 2 3 4 1 chunk +25 lines, -17 lines 0 comments Download
A + LayoutTests/fast/events/touch/gesture/gesture-tap-scrolled.html View 1 2 3 4 1 chunk +22 lines, -20 lines 0 comments Download
A LayoutTests/fast/events/touch/gesture/gesture-tap-scrolled-expected.txt View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/touch/gesture/resources/event-delegator.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Zeeshan Qureshi
Rick, PTAL.
6 years, 2 months ago (2014-10-09 19:41:33 UTC) #2
Rick Byers
Good work tracking this down, I'm suitably embarrassed! Just a couple minor suggestions. https://codereview.chromium.org/641063003/diff/150001/LayoutTests/fast/events/touch/gesture/gesture-tap-frame-scrolled.html File ...
6 years, 2 months ago (2014-10-10 00:39:35 UTC) #3
Zeeshan Qureshi
https://codereview.chromium.org/641063003/diff/150001/LayoutTests/fast/events/touch/gesture/gesture-tap-frame-scrolled.html File LayoutTests/fast/events/touch/gesture/gesture-tap-frame-scrolled.html (right): https://codereview.chromium.org/641063003/diff/150001/LayoutTests/fast/events/touch/gesture/gesture-tap-frame-scrolled.html#newcode35 LayoutTests/fast/events/touch/gesture/gesture-tap-frame-scrolled.html:35: shouldBe("event.clientX", "point.x"); On 2014/10/10 00:39:35, Rick Byers wrote: > ...
6 years, 2 months ago (2014-10-10 00:47:23 UTC) #4
Zeeshan Qureshi
Rick, tried to make the tests more clear, PTAL.
6 years, 2 months ago (2014-10-14 19:56:16 UTC) #6
Rick Byers
Thanks, these tests are substantially stronger (and easier to understand now)! LGTM
6 years, 2 months ago (2014-10-14 20:55:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641063003/260001
6 years, 2 months ago (2014-10-14 20:56:09 UTC) #9
commit-bot: I haz the power
6 years, 2 months ago (2014-10-14 22:01:18 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:260001) as 183699

Powered by Google App Engine
This is Rietveld 408576698