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

Issue 448593002: Make Gesture Tap be aware of Shadow DOM. (Closed)

Created:
6 years, 4 months ago by hayato
Modified:
6 years, 4 months ago
Reviewers:
esprehn, dglazkov
CC:
blink-reviews, kochi
Project:
blink
Visibility:
Public.

Description

Make Gesture Tap be aware of Shadow DOM. There are several places where we should use NodeRenderingTraversal::parent rather than plain node->parentNode() in WebViewImpl. Unless that, we can't handle the case where a distributed node is tapped. This patch also fixed the crash which a newly added layout test, gesture-tapHighlight-shadow-tree.html, has revealed. In LinkHighlight::computeQuads, we can't use node->childNode() to retrieve a child render object here because a render tree is constructed from a composed tree and we should retrieve a render object of a distributed node here. BUG=399522 TEST=gesture-tapHighlight-shadow-tree.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180643

Patch Set 1 #

Patch Set 2 : Update LinkHighlight #

Total comments: 3

Patch Set 3 : rebased #

Patch Set 4 : rebased #

Patch Set 5 : Use useMockHighlight() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -26 lines) Patch
A + LayoutTests/compositing/gestures/gesture-tapHighlight-shadow-tree.html View 1 2 3 4 2 chunks +15 lines, -9 lines 0 comments Download
A + LayoutTests/compositing/gestures/gesture-tapHighlight-shadow-tree-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/LinkHighlight.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/web/LinkHighlight.cpp View 1 2 3 4 2 chunks +6 lines, -12 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hayato
PTAL
6 years, 4 months ago (2014-08-06 08:05:36 UTC) #1
dglazkov
lgtm
6 years, 4 months ago (2014-08-06 15:30:10 UTC) #2
esprehn
What is updating the distribution before you call ::parent() ? https://codereview.chromium.org/448593002/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/448593002/diff/20001/Source/web/WebViewImpl.cpp#newcode1197 ...
6 years, 4 months ago (2014-08-06 17:05:44 UTC) #3
hayato
Thank you for the reviews. https://codereview.chromium.org/448593002/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/448593002/diff/20001/Source/web/WebViewImpl.cpp#newcode1197 Source/web/WebViewImpl.cpp:1197: bestTouchNode = NodeRenderingTraversal::parent(bestTouchNode); On ...
6 years, 4 months ago (2014-08-07 02:44:55 UTC) #4
hayato
I am now taking a look at HitTest. I can't find any HitTest which will ...
6 years, 4 months ago (2014-08-07 03:09:49 UTC) #5
hayato
On 2014/08/07 03:09:49, hayato wrote: > I am now taking a look at HitTest. I ...
6 years, 4 months ago (2014-08-07 03:52:02 UTC) #6
hayato
I've rebased this patch on ToT. Because I've landed https://codereview.chromium.org/448893003/, let me land this patch ...
6 years, 4 months ago (2014-08-15 10:46:43 UTC) #7
hayato
It looks failures on win_blink_rel are irreverent with this patch. Let me land this patch.
6 years, 4 months ago (2014-08-20 10:48:08 UTC) #8
hayato
The CQ bit was checked by hayato@chromium.org
6 years, 4 months ago (2014-08-20 10:48:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hayato@chromium.org/448593002/80001
6 years, 4 months ago (2014-08-20 10:48:53 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-20 11:29:00 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 12:06:14 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (80001) as 180643

Powered by Google App Engine
This is Rietveld 408576698