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

Issue 2432293002: Fix focus navigation for nested slot case (Closed)

Created:
4 years, 2 months ago by kochi
Modified:
4 years, 1 month ago
Reviewers:
hayato
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix focus navigation for nested slot case For forward navigation, SlotScopedTraversal was not excluding an element that is assigned to another slot. For backward navigation, the original logic in FocusController/SlotScopedTraversal failed to detect case when shadow hosts exist in a slot scope. Elements that are slotted to slots in their shadow roots should be skipped in traversal. BUG=618587 Committed: https://crrev.com/5639462246b2b792a1d75ba418fce6c6edd76940 Cr-Commit-Position: refs/heads/master@{#428682}

Patch Set 1 : (not ready for review) #

Patch Set 2 : Fix for delegatesFocus case. #

Patch Set 3 : More proper fix #

Total comments: 8

Patch Set 4 : address review comments. #

Patch Set 5 : extract first/last function for SlotScopedTraversal #

Patch Set 6 : Implement traversal methods for SlotScopedTraversal::previous() #

Patch Set 7 : Minor cleanups #

Total comments: 8

Patch Set 8 : fix for hayato's review comments #

Patch Set 9 : Fix bugs, add unit tests #

Total comments: 15

Patch Set 10 : Fix for hayato's review comments. #

Total comments: 4

Patch Set 11 : More references #

Messages

Total messages: 56 (40 generated)
kochi
PTAL
4 years, 2 months ago (2016-10-21 07:26:43 UTC) #17
hayato
https://codereview.chromium.org/2432293002/diff/40001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp (right): https://codereview.chromium.org/2432293002/diff/40001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp#newcode35 third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp:35: Element* nearestAncestorAssignedToSlot = Could we rename |nearestAncestorAssignedToSlot| to |nearestInclusiveAncestorAssignedToSlot|? ...
4 years, 2 months ago (2016-10-24 06:43:26 UTC) #18
kochi
https://codereview.chromium.org/2432293002/diff/40001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp (right): https://codereview.chromium.org/2432293002/diff/40001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp#newcode35 third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp:35: Element* nearestAncestorAssignedToSlot = On 2016/10/24 06:43:26, hayato wrote: > ...
4 years, 2 months ago (2016-10-24 08:55:20 UTC) #19
kochi
As we discussed offline, I improved previous() logic so that it doesn't need any nearest ...
4 years, 1 month ago (2016-10-25 08:54:45 UTC) #29
hayato
> For finding previous element, this CL uses normal > ElementTraversal::previous() and then traverses the ...
4 years, 1 month ago (2016-10-26 04:24:12 UTC) #32
kochi
On 2016/10/26 04:24:12, hayato wrote: > > For finding previous element, this CL uses normal ...
4 years, 1 month ago (2016-10-26 10:19:52 UTC) #35
kochi
https://codereview.chromium.org/2432293002/diff/140001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp (right): https://codereview.chromium.org/2432293002/diff/140001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp#newcode33 third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp:33: Element* slottedAncestor = On 2016/10/26 04:24:12, hayato wrote: > ...
4 years, 1 month ago (2016-10-26 10:20:03 UTC) #36
kochi
> I had expected the reaction... I wrote the previous() function for this. > I'm ...
4 years, 1 month ago (2016-10-27 04:46:15 UTC) #39
kochi
The new CL with unit tests uploaded. Could you review this?
4 years, 1 month ago (2016-10-28 08:13:21 UTC) #42
hayato
https://codereview.chromium.org/2432293002/diff/180001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp (right): https://codereview.chromium.org/2432293002/diff/180001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp#newcode14 third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp:14: Element* nextSkippingShadowHost(const Element& start, const Element& scope) { This ...
4 years, 1 month ago (2016-10-31 05:27:13 UTC) #45
kochi
https://codereview.chromium.org/2432293002/diff/180001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp (right): https://codereview.chromium.org/2432293002/diff/180001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp#newcode14 third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp:14: Element* nextSkippingShadowHost(const Element& start, const Element& scope) { On ...
4 years, 1 month ago (2016-10-31 07:30:25 UTC) #47
hayato
LGTM Could you file another bug to support nested slot fallback elements in focus navigation? ...
4 years, 1 month ago (2016-10-31 08:12:01 UTC) #48
kochi
Filed a separate issue for fallback slots as crbug.com/660806. https://codereview.chromium.org/2432293002/diff/220001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp (right): https://codereview.chromium.org/2432293002/diff/220001/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp#newcode82 third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp:82: ...
4 years, 1 month ago (2016-10-31 09:29:11 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2432293002/240001
4 years, 1 month ago (2016-10-31 09:35:02 UTC) #52
commit-bot: I haz the power
Committed patchset #11 (id:240001)
4 years, 1 month ago (2016-10-31 10:53:46 UTC) #54
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 10:55:19 UTC) #56
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5639462246b2b792a1d75ba418fce6c6edd76940
Cr-Commit-Position: refs/heads/master@{#428682}

Powered by Google App Engine
This is Rietveld 408576698