| OLD | NEW |
| 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* nearestAncestorAssignedToSlot(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 bool isSlotScoped(const Element&); | 19 static bool isSlotScoped(const Element&); |
| 20 static HTMLSlotElement* findFallbackScopeOwnerSlot(const Element& current); |
| 21 static bool isSlotFallbackScoped(const Element&); |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 } // namespace blink | 24 } // namespace blink |
| 23 | 25 |
| 24 #endif | 26 #endif |
| OLD | NEW |