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

Issue 1305733002: Fix for calculation of event.path for closed mode shadow root (Closed)

Created:
5 years, 4 months ago by kochi
Modified:
5 years, 3 months ago
Reviewers:
hayato
CC:
blink-reviews
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Fix for calculation of event.path for closed mode shadow root Old code assumed that only one level of UA shadow tree nodes should be excluded from event path, while it is no longer true after introduction of shadow root closed mode. This change properly hides all the nodes behind closed shadow root in the event path. BUG=459136 TEST=event-path-closed-shadowroot.html, event-path-closed-shadowroot2.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201391

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : fix test expectation #

Patch Set 4 : clean up test #

Patch Set 5 : Fix the closed tree exclusion logic #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : Ready for review #

Patch Set 9 : comment update #

Total comments: 8

Patch Set 10 : address review comments. #

Total comments: 12

Patch Set 11 : fix for comments #

Patch Set 12 : isUnclosedTree() #

Patch Set 13 : do not treat UA shadow special #

Total comments: 4

Patch Set 14 : isUnclosedTreeOf() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -16 lines) Patch
A LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html View 1 2 3 4 5 6 7 8 9 1 chunk +79 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/event-path-closed-shadowroot-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2.html View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2-expected.txt View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
M Source/core/events/EventPath.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/EventPath.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -4 lines 0 comments Download
M Source/core/events/TreeScopeEventContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +28 lines, -4 lines 0 comments Download
M Source/core/events/TreeScopeEventContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +32 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305733002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305733002/1
5 years, 4 months ago (2015-08-20 12:22:53 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/101117)
5 years, 4 months ago (2015-08-20 13:28:04 UTC) #5
kochi
PTAL
5 years, 4 months ago (2015-08-24 10:15:39 UTC) #6
hayato
https://codereview.chromium.org/1305733002/diff/160001/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html File LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html (right): https://codereview.chromium.org/1305733002/diff/160001/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html#newcode9 LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html:9: createShadowRoot({mode: 'open'}, Could you add an id attribute to ...
5 years, 4 months ago (2015-08-25 01:34:20 UTC) #7
kochi
Addressed comments. PTAL https://codereview.chromium.org/1305733002/diff/160001/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html File LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html (right): https://codereview.chromium.org/1305733002/diff/160001/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html#newcode9 LayoutTests/fast/dom/shadow/event-path-closed-shadowroot.html:9: createShadowRoot({mode: 'open'}, On 2015/08/25 01:34:20, hayato ...
5 years, 4 months ago (2015-08-25 02:18:31 UTC) #8
hayato
https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp File Source/core/events/TreeScopeEventContext.cpp (right): https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp#newcode37 Source/core/events/TreeScopeEventContext.cpp:37: bool TreeScopeEventContext::shouldIncludeTreeScopeInEventPath(const TreeScopeEventContext& other) Why don't you use a ...
5 years, 3 months ago (2015-08-26 05:37:58 UTC) #9
kochi
PTAL https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp File Source/core/events/TreeScopeEventContext.cpp (right): https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp#newcode37 Source/core/events/TreeScopeEventContext.cpp:37: bool TreeScopeEventContext::shouldIncludeTreeScopeInEventPath(const TreeScopeEventContext& other) On 2015/08/26 05:37:58, hayato ...
5 years, 3 months ago (2015-08-26 06:24:05 UTC) #10
hayato
https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp File Source/core/events/TreeScopeEventContext.cpp (right): https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp#newcode37 Source/core/events/TreeScopeEventContext.cpp:37: bool TreeScopeEventContext::shouldIncludeTreeScopeInEventPath(const TreeScopeEventContext& other) On 2015/08/26 06:24:05, Takayoshi Kochi ...
5 years, 3 months ago (2015-08-26 10:15:30 UTC) #11
kochi
PTAL https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp File Source/core/events/TreeScopeEventContext.cpp (right): https://codereview.chromium.org/1305733002/diff/180001/Source/core/events/TreeScopeEventContext.cpp#newcode41 Source/core/events/TreeScopeEventContext.cpp:41: // Exclude nodes in UA shadow. E.g. <details> ...
5 years, 3 months ago (2015-08-27 07:24:32 UTC) #12
hayato
lgtm https://codereview.chromium.org/1305733002/diff/230001/Source/core/events/TreeScopeEventContext.cpp File Source/core/events/TreeScopeEventContext.cpp (right): https://codereview.chromium.org/1305733002/diff/230001/Source/core/events/TreeScopeEventContext.cpp#newcode37 Source/core/events/TreeScopeEventContext.cpp:37: bool TreeScopeEventContext::isUnclosedTree(const TreeScopeEventContext& other) Can we rename this ...
5 years, 3 months ago (2015-08-28 08:37:51 UTC) #13
kochi
Thanks for the review. isUnclosedTreeOf() more matches other part of the code, and looks better. ...
5 years, 3 months ago (2015-08-28 09:01:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305733002/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305733002/250001
5 years, 3 months ago (2015-08-28 09:01:38 UTC) #17
commit-bot: I haz the power
5 years, 3 months ago (2015-08-28 10:36:22 UTC) #18
Message was sent while issue was closed.
Committed patchset #14 (id:250001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201391

Powered by Google App Engine
This is Rietveld 408576698