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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.h

Issue 2432293002: Fix focus navigation for nested slot case (Closed)
Patch Set: Minor cleanups Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SlotScopedTraversal_h 5 #ifndef SlotScopedTraversal_h
6 #define SlotScopedTraversal_h 6 #define SlotScopedTraversal_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 class Element; 10 class Element;
11 class HTMLSlotElement; 11 class HTMLSlotElement;
12 12
13 class SlotScopedTraversal { 13 class SlotScopedTraversal {
14 public: 14 public:
15 static HTMLSlotElement* findScopeOwnerSlot(const Element&); 15 static HTMLSlotElement* findScopeOwnerSlot(const Element&);
16 static Element* nearestAncestorAssignedToSlot(const Element&); 16 static Element* nearestInclusiveAncestorAssignedToSlot(const Element&);
17 static Element* next(const Element&); 17 static Element* next(const Element&);
18 static Element* previous(const Element&); 18 static Element* previous(const Element&);
19 static Element* lastWithin(const Element&);
20 static Element* firstAssignedToSlot(HTMLSlotElement&);
21 static Element* lastAssignedToSlot(HTMLSlotElement&);
22
19 static bool isSlotScoped(const Element&); 23 static bool isSlotScoped(const Element&);
20 }; 24 };
21 25
22 } // namespace blink 26 } // namespace blink
23 27
24 #endif 28 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698