Bug 191851

Summary: Document::focusNavigationStartingNode doesn't take shadow tree into account
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: cfleizach, jcraig, koivisto, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=191694
Bug Depends on:    
Bug Blocks: 148695    
Attachments:
Description Flags
A patch to add a test case none

Ryosuke Niwa
Reported 2018-11-19 22:16:41 PST
Document::focusNavigationStartingNode needs to take shadow tree and slotted content into account. This is a bit tricky because this code needs to traverse the composed tree forward & backward.
Attachments
A patch to add a test case (2.09 KB, patch)
2018-11-19 22:21 PST, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2018-11-19 22:18:10 PST
Antti, what do you think about adding the support for traversing backwards to ElementAndTextDescendantIterator and ComposedTreeIterator?
Radar WebKit Bug Importer
Comment 2 2018-11-19 22:18:41 PST
Ryosuke Niwa
Comment 3 2018-11-19 22:21:42 PST
Created attachment 355311 [details] A patch to add a test case
Antti Koivisto
Comment 4 2018-11-20 06:13:42 PST
(In reply to Ryosuke Niwa from comment #1) > Antti, what do you think about adding the support for traversing backwards > to ElementAndTextDescendantIterator and ComposedTreeIterator? Good idea!
Note You need to log in before you can comment on or make changes to this bug.