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

Issue 1210253003: Fix wheel event dispatch logic to fallback to document when hit-test fails (Closed)

Created:
5 years, 6 months ago by majidvp
Modified:
5 years, 5 months ago
Reviewers:
Rick Byers
CC:
blink-reviews, bokan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix wheel event dispatch logic to fallback to document when hit-test fails Hit testing may fail to identify any element in certain layouts. In these cases, we should dispatch the wheel event to the document. TEST=fast/events/dispatch-mouse-events-to-window-always.html BUG=500144 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198210

Patch Set 1 #

Total comments: 13

Patch Set 2 : Improve and fix the test #

Patch Set 3 : Update comment with link to the bug #

Patch Set 4 : Replace with passing Active to be consistent #

Total comments: 8

Patch Set 5 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -1 line) Patch
A LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html View 1 2 3 4 1 chunk +101 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M Source/core/input/EventHandler.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
majidvp
5 years, 6 months ago (2015-06-26 01:46:47 UTC) #2
Rick Byers
https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt File LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt (right): https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt#newcode9 LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt:9: FAIL dispatchCount[document.body][eventType] should be 2. Was 0. You've got ...
5 years, 6 months ago (2015-06-26 12:34:49 UTC) #3
majidvp
https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt File LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt (right): https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt#newcode9 LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt:9: FAIL dispatchCount[document.body][eventType] should be 2. Was 0. On 2015/06/26 ...
5 years, 5 months ago (2015-06-29 16:58:40 UTC) #4
Rick Byers
https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html File LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html (right): https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html#newcode21 LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html:21: <body> On 2015/06/29 16:58:40, majidvp wrote: > On 2015/06/26 ...
5 years, 5 months ago (2015-06-29 17:07:59 UTC) #5
dtapuska
On 2015/06/29 17:07:59, Rick Byers wrote: > https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html > File LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html > (right): > > ...
5 years, 5 months ago (2015-06-29 17:51:52 UTC) #6
majidvp
On 2015/06/29 17:51:52, Dave Tapuska wrote: > On 2015/06/29 17:07:59, Rick Byers wrote: > > ...
5 years, 5 months ago (2015-06-29 21:20:01 UTC) #7
majidvp
PTAL. https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt File LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt (right): https://codereview.chromium.org/1210253003/diff/1/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt#newcode9 LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt:9: FAIL dispatchCount[document.body][eventType] should be 2. Was 0. On ...
5 years, 5 months ago (2015-06-30 15:33:04 UTC) #8
Rick Byers
Thanks - re-using the existing hack like this definitely seems better to me than adding ...
5 years, 5 months ago (2015-06-30 20:14:50 UTC) #9
majidvp
https://codereview.chromium.org/1210253003/diff/60001/LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html File LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html (right): https://codereview.chromium.org/1210253003/diff/60001/LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html#newcode92 LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html:92: shouldBe('actualReceivers', 'expectedReceivers'); On 2015/06/30 20:14:49, Rick Byers wrote: > ...
5 years, 5 months ago (2015-06-30 22:48:32 UTC) #10
Rick Byers
Still LGTM https://codereview.chromium.org/1210253003/diff/60001/LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html File LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html (right): https://codereview.chromium.org/1210253003/diff/60001/LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html#newcode92 LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html:92: shouldBe('actualReceivers', 'expectedReceivers'); On 2015/06/30 22:48:31, majidvp wrote: ...
5 years, 5 months ago (2015-07-01 13:41:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210253003/80001
5 years, 5 months ago (2015-07-02 12:22:48 UTC) #13
commit-bot: I haz the power
5 years, 5 months ago (2015-07-02 13:32:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198210

Powered by Google App Engine
This is Rietveld 408576698