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

Issue 490783003: Reduce hit test on ShowPress by moving event targeting to WebViewImpl (Closed)

Created:
6 years, 4 months ago by Zeeshan Qureshi
Modified:
6 years, 3 months ago
CC:
aandrey+blink_chromium.org, apavlov+blink_chromium.org, blink-reviews, blink-reviews-events_chromium.org, caseq+blink_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, eustas+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org, bokan, wjmaclean, mustaq
Project:
blink
Visibility:
Public.

Description

Reduce hit test on ShowPress by moving hit testing to WebViewImpl. Previously there was a hit test for link highlighting in WebViewImpl and then a separate one in EventHandler::handleGestureEvent. This CL makes it so that a single hit test in WebViewImpl is reused by the EventHandler. Scroll events still need to hit test in a separate fashion though and their handling has been refactored into a separate code path. BUG=381728 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182510

Patch Set 1 #

Patch Set 2 : Rebase ToT #

Patch Set 3 : Only hit test in WebViewImpl if not scroll event #

Patch Set 4 : Update hit test counts #

Total comments: 8

Patch Set 5 : Add separate path for scroll events #

Patch Set 6 : Rebase ToT #

Patch Set 7 : Remove unnecessary headers #

Total comments: 10

Patch Set 8 : Rebase after other hit test patches #

Total comments: 4

Patch Set 9 : Rebase ToT #

Patch Set 10 : Update hover/active after link highlights have been set #

Patch Set 11 : Tweak test to only consider scrolling condition #

Patch Set 12 : Switch back to using platform event position for content intents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -84 lines) Patch
M LayoutTests/compositing/gestures/gesture-tapHighlight-on-promoted-overflow-div-scrolled.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/hit-test-counts-expected.txt View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/page/EventHandler.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -3 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +19 lines, -8 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +48 lines, -37 lines 0 comments Download
M Source/web/tests/LinkHighlightTest.cpp View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -31 lines 0 comments Download

Messages

Total messages: 40 (5 generated)
Zeeshan Qureshi
Rick, still WIP but can you have a look.
6 years, 4 months ago (2014-08-20 19:39:53 UTC) #1
Rick Byers
This looks good overall, thanks! Just a couple additional opportunities to clean things up. https://codereview.chromium.org/490783003/diff/60001/Source/core/inspector/InspectorOverlay.cpp ...
6 years, 4 months ago (2014-08-20 23:59:33 UTC) #2
Zeeshan Qureshi
https://codereview.chromium.org/490783003/diff/60001/Source/core/inspector/InspectorOverlay.cpp File Source/core/inspector/InspectorOverlay.cpp (right): https://codereview.chromium.org/490783003/diff/60001/Source/core/inspector/InspectorOverlay.cpp#newcode374 Source/core/inspector/InspectorOverlay.cpp:374: toLocalFrame(overlayPage()->mainFrame())->eventHandler().targetGestureEvent(event); On 2014/08/20 23:59:32, Rick Byers wrote: > Perhaps ...
6 years, 4 months ago (2014-08-21 04:59:25 UTC) #3
Zeeshan Qureshi
The CQ bit was checked by zeeshanq@chromium.org
6 years, 4 months ago (2014-08-21 04:59:32 UTC) #4
Zeeshan Qureshi
The CQ bit was unchecked by zeeshanq@chromium.org
6 years, 4 months ago (2014-08-21 04:59:34 UTC) #5
dgozman
FYI: if you plan to reduce the number of hit tests even further, make sure ...
6 years, 4 months ago (2014-08-21 06:35:31 UTC) #6
Rick Byers
I'm in the middle of trying to merge a bunch of fixes back to M38 ...
6 years, 4 months ago (2014-08-21 21:38:26 UTC) #7
Zeeshan Qureshi
Sure.
6 years, 4 months ago (2014-08-21 21:39:39 UTC) #8
Rick Byers
This is looking really good! I have a couple more minor suggestions for cleaning it ...
6 years, 4 months ago (2014-08-22 14:49:58 UTC) #9
Zeeshan Qureshi
https://codereview.chromium.org/490783003/diff/120001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/490783003/diff/120001/Source/core/page/EventHandler.cpp#newcode2065 Source/core/page/EventHandler.cpp:2065: TRACE_EVENT0("input", "EventHandler::handleGestureEvent"); On 2014/08/22 14:49:57, Rick Byers wrote: > ...
6 years, 4 months ago (2014-08-22 15:30:50 UTC) #10
Rick Byers
On 2014/08/22 15:30:50, Zeeshan Qureshi wrote: > https://codereview.chromium.org/490783003/diff/120001/Source/core/page/EventHandler.cpp > File Source/core/page/EventHandler.cpp (right): > > https://codereview.chromium.org/490783003/diff/120001/Source/core/page/EventHandler.cpp#newcode2065 ...
6 years, 4 months ago (2014-08-22 15:58:27 UTC) #11
Zeeshan Qureshi
Rick, updated after your changes landed. Added a FIXME for the scroll events missing test ...
6 years, 3 months ago (2014-08-26 19:09:12 UTC) #12
Rick Byers
rbyers@chromium.org changed reviewers: + aelias@chromium.org
6 years, 3 months ago (2014-08-26 21:16:41 UTC) #13
Rick Byers
LGTM (with minor nit). +aelias for Source/web OWNERS https://codereview.chromium.org/490783003/diff/140001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/490783003/diff/140001/Source/core/page/EventHandler.cpp#newcode2070 Source/core/page/EventHandler.cpp:2070: // ...
6 years, 3 months ago (2014-08-26 21:16:41 UTC) #14
aelias_OOO_until_Jul13
https://codereview.chromium.org/490783003/diff/140001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/490783003/diff/140001/Source/web/WebViewImpl.cpp#newcode670 Source/web/WebViewImpl.cpp:670: case WebInputEvent::GestureDoubleTap: It seems strange to treat double-tap specially ...
6 years, 3 months ago (2014-08-27 03:26:34 UTC) #15
Zeeshan Qureshi
https://codereview.chromium.org/490783003/diff/140001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/490783003/diff/140001/Source/web/WebViewImpl.cpp#newcode670 Source/web/WebViewImpl.cpp:670: case WebInputEvent::GestureDoubleTap: On 2014/08/27 03:26:34, aelias wrote: > It ...
6 years, 3 months ago (2014-08-27 19:37:57 UTC) #16
Rick Byers
https://codereview.chromium.org/490783003/diff/140001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/490783003/diff/140001/Source/web/WebViewImpl.cpp#newcode670 Source/web/WebViewImpl.cpp:670: case WebInputEvent::GestureDoubleTap: On 2014/08/27 19:37:56, Zeeshan Qureshi wrote: > ...
6 years, 3 months ago (2014-08-27 20:30:25 UTC) #17
aelias_OOO_until_Jul13
OK, it sounds like further improvement is possible in double-tap, but lgtm for this incremental ...
6 years, 3 months ago (2014-08-28 02:21:04 UTC) #18
Zeeshan Qureshi
The CQ bit was checked by zeeshanq@chromium.org
6 years, 3 months ago (2014-08-28 02:39:16 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zeeshanq@chromium.org/490783003/140001
6 years, 3 months ago (2014-08-28 02:40:13 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:140001) as 181009
6 years, 3 months ago (2014-08-28 03:46:06 UTC) #21
mlamouri (slow - plz ping)
A revert of this CL (patchset #8) has been created in https://codereview.chromium.org/509173004/ by mlamouri@chromium.org. The ...
6 years, 3 months ago (2014-08-28 12:34:04 UTC) #22
Zeeshan Qureshi
I'm trying to repro these on my device and they pass. Maybe it was a ...
6 years, 3 months ago (2014-09-04 23:03:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zeeshanq@chromium.org/490783003/140001
6 years, 3 months ago (2014-09-05 01:49:25 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001) as 181427
6 years, 3 months ago (2014-09-05 01:50:17 UTC) #26
Zeeshan Qureshi
Rick/Alexander PTAL This patch set fixes the issue with compositing/gestures/gesture-tapHighlight-on-promoted-o verflow-div-scrolled.html What seemed to be ...
6 years, 3 months ago (2014-09-16 05:56:32 UTC) #27
Rick Byers
On 2014/09/16 05:56:32, Zeeshan Qureshi wrote: > Rick/Alexander PTAL > > This patch set fixes ...
6 years, 3 months ago (2014-09-16 18:46:24 UTC) #30
Zeeshan Qureshi
I agree, this is only a temporary fix. We should be updating link highlighting to ...
6 years, 3 months ago (2014-09-16 18:53:05 UTC) #31
Zeeshan Qureshi
I've filed a bug for the link highlighting issue crbug.com/415702 and updated the test to ...
6 years, 3 months ago (2014-09-18 21:15:23 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/490783003/240001
6 years, 3 months ago (2014-09-18 21:28:53 UTC) #34
Rick Byers
On 2014/09/18 21:15:23, Zeeshan Qureshi wrote: > I've filed a bug for the link highlighting ...
6 years, 3 months ago (2014-09-18 21:42:26 UTC) #35
commit-bot: I haz the power
Committed patchset #11 (id:240001) as 182281
6 years, 3 months ago (2014-09-18 22:32:25 UTC) #36
Zeeshan Qureshi
A revert of this CL (patchset #11 id:240001) has been created in https://codereview.chromium.org/587543004/ by zeeshanq@chromium.org. ...
6 years, 3 months ago (2014-09-19 16:32:35 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/490783003/260001
6 years, 3 months ago (2014-09-23 17:24:45 UTC) #39
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 18:08:45 UTC) #40
Message was sent while issue was closed.
Committed patchset #12 (id:260001) as 182510

Powered by Google App Engine
This is Rietveld 408576698