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

Issue 225903009: Migrate touch events to EventHandlerRegistry (Closed)

Created:
6 years, 8 months ago by Sami
Modified:
6 years, 4 months ago
CC:
adamk+blink_chromium.org, bemjb+rendering_chromium.org, blink-layers+watch_chromium.org, blink-reviews, Inactive, dglazkov+blink, dsinclair, eae+blinkwatch, jchaffraix+rendering, kenneth.christiansen, leviw+renderwatch, pdr., rwlbuis, rune+blink, sof, zoltan1
Visibility:
Public.

Description

Migrate touch events to EventHandlerRegistry Remove the specialized code for tracking touch events in favor of the generic EventHandlerRegistry. Covered by existing tests. See https://codereview.chromium.org/206603002/ for full review history. BUG=347366 TEST=fast/events/touch* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177812 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180191

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Moved touch changes for the registry into this patch. #

Patch Set 4 : Rebased. #

Patch Set 5 : Rebased (WIP) #

Patch Set 6 : More rebasing #

Patch Set 7 : Rework FrameHost migration. Update test expectations. #

Patch Set 8 : Rebased. #

Total comments: 19

Patch Set 9 : Review comments. #

Patch Set 10 : Typos. #

Patch Set 11 : Rebased. #

Patch Set 12 : Rebased. #

Patch Set 13 : Rebased. #

Patch Set 14 : Fixed HTMLInputElement adding handler at document destruction and removed dead oilpan code. #

Total comments: 1

Patch Set 15 : Specifically check for stopping/stopped document. #

Patch Set 16 : Rebased. #

Patch Set 17 : Rebased. #

Patch Set 18 : Add crash regression test. #

Patch Set 19 : Don't bother with the test because https://codereview.chromium.org/392283002 added one. #

Patch Set 20 : Fix indendation problems (added by meld?) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -268 lines) Patch
A LayoutTests/fast/events/move-event-handler-between-framehosts.html View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/move-event-handler-between-framehosts-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/touch/touch-action-touch-handlers.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/touch/touch-action-touch-handlers-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/touch/touch-handler-count.html View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/fast/events/touch/touch-handler-count-expected.txt View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +0 lines, -21 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +0 lines, -93 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +7 lines, -21 lines 0 comments Download
M Source/core/frame/EventHandlerRegistry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +12 lines, -4 lines 0 comments Download
M Source/core/frame/EventHandlerRegistry.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +44 lines, -25 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +1 line, -16 lines 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +11 lines, -11 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +15 lines, -14 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +5 lines, -3 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -8 lines 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +12 lines, -8 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +32 lines, -29 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Sami
6 years, 8 months ago (2014-04-11 18:19:14 UTC) #1
Rick Byers
I assume this is also the same as what I already reviewed in the mega ...
6 years, 8 months ago (2014-04-11 18:32:25 UTC) #2
Sami
Finally got around to reworking this. In short: - Redid migration of EventTargets between FrameHosts ...
6 years, 6 months ago (2014-06-18 15:36:18 UTC) #3
abarth-chromium
lgtm https://codereview.chromium.org/225903009/diff/140001/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/225903009/diff/140001/Source/core/rendering/RenderObject.cpp#newcode2266 Source/core/rendering/RenderObject.cpp:2266: if (document().frameHost() && node() && !node()->isTextNode() && (oldTouchAction ...
6 years, 6 months ago (2014-06-18 23:43:06 UTC) #4
Rick Byers
Very nice, thank you! https://codereview.chromium.org/225903009/diff/140001/LayoutTests/fast/events/touch/touch-action-touch-handlers.html File LayoutTests/fast/events/touch/touch-action-touch-handlers.html (right): https://codereview.chromium.org/225903009/diff/140001/LayoutTests/fast/events/touch/touch-action-touch-handlers.html#newcode101 LayoutTests/fast/events/touch/touch-action-touch-handlers.html:101: shouldBe("getTouchHandlerCount(nestedDocument)", "2"); why this change? ...
6 years, 6 months ago (2014-06-19 17:10:36 UTC) #5
Sami
Thanks for the comments -- all addressed. https://codereview.chromium.org/225903009/diff/140001/LayoutTests/fast/events/touch/touch-action-touch-handlers.html File LayoutTests/fast/events/touch/touch-action-touch-handlers.html (right): https://codereview.chromium.org/225903009/diff/140001/LayoutTests/fast/events/touch/touch-action-touch-handlers.html#newcode101 LayoutTests/fast/events/touch/touch-action-touch-handlers.html:101: shouldBe("getTouchHandlerCount(nestedDocument)", "2"); ...
6 years, 5 months ago (2014-06-27 17:58:52 UTC) #6
Rick Byers
lgtm. Note that I didn't re-review the entire patch. It looks like your ps9 contains ...
6 years, 5 months ago (2014-06-27 21:36:51 UTC) #7
Sami
On 2014/06/27 21:36:51, Rick Byers wrote: > lgtm. > > Note that I didn't re-review ...
6 years, 5 months ago (2014-06-30 11:07:40 UTC) #8
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 5 months ago (2014-06-30 11:15:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/225903009/200001
6 years, 5 months ago (2014-06-30 11:15:48 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_blink_compile_dbg on tryserver.blink ...
6 years, 5 months ago (2014-06-30 12:06:08 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-30 12:07:21 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/23147)
6 years, 5 months ago (2014-06-30 12:07:22 UTC) #13
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 5 months ago (2014-06-30 12:58:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/225903009/220001
6 years, 5 months ago (2014-06-30 12:59:15 UTC) #15
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, 5 months ago (2014-06-30 14:09:20 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-30 15:14:04 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/14346)
6 years, 5 months ago (2014-06-30 15:14:05 UTC) #18
Sami
One of the bots found a bug here where HTMLInputElement was adding a custom touch ...
6 years, 5 months ago (2014-07-01 17:33:21 UTC) #19
Rick Byers
https://codereview.chromium.org/225903009/diff/260001/Source/core/html/HTMLInputElement.cpp File Source/core/html/HTMLInputElement.cpp (right): https://codereview.chromium.org/225903009/diff/260001/Source/core/html/HTMLInputElement.cpp#newcode430 Source/core/html/HTMLInputElement.cpp:430: if (document().frameHost() && document().isActive()) { Looks like this change ...
6 years, 5 months ago (2014-07-01 18:21:33 UTC) #20
Sami
On 2014/07/01 18:21:33, Rick Byers wrote: > Looks like this change will also skip updating ...
6 years, 5 months ago (2014-07-01 18:32:52 UTC) #21
Sami
Bots look happy now. Rick, any objections? :)
6 years, 5 months ago (2014-07-09 18:34:30 UTC) #22
Rick Byers
On 2014/07/09 18:34:30, Sami wrote: > Bots look happy now. Rick, any objections? :) Nope, ...
6 years, 5 months ago (2014-07-09 18:52:37 UTC) #23
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 5 months ago (2014-07-10 08:48:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/225903009/300001
6 years, 5 months ago (2014-07-10 08:48:35 UTC) #25
commit-bot: I haz the power
Change committed as 177812
6 years, 5 months ago (2014-07-10 08:53:04 UTC) #26
Sami
Now that the EventHandlerRegistry crashers have been eradicated by https://codereview.chromium.org/392283002 and https://codereview.chromium.org/415203003 (knock on wood), ...
6 years, 4 months ago (2014-08-13 14:55:07 UTC) #27
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 4 months ago (2014-08-13 14:55:25 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/225903009/420001
6 years, 4 months ago (2014-08-13 14:55:56 UTC) #29
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 16:23:33 UTC) #30
Message was sent while issue was closed.
Committed patchset #20 (420001) as 180191

Powered by Google App Engine
This is Rietveld 408576698