| 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 #include "core/CoreExport.h" |
| 9 |
| 8 namespace blink { | 10 namespace blink { |
| 9 | 11 |
| 10 class Element; | 12 class Element; |
| 11 class HTMLSlotElement; | 13 class HTMLSlotElement; |
| 12 | 14 |
| 13 class SlotScopedTraversal { | 15 class CORE_EXPORT SlotScopedTraversal { |
| 14 public: | 16 public: |
| 15 static HTMLSlotElement* findScopeOwnerSlot(const Element&); | 17 static HTMLSlotElement* findScopeOwnerSlot(const Element&); |
| 16 static Element* nearestAncestorAssignedToSlot(const Element&); | 18 static Element* nearestInclusiveAncestorAssignedToSlot(const Element&); |
| 17 static Element* next(const Element&); | 19 static Element* next(const Element&); |
| 18 static Element* previous(const Element&); | 20 static Element* previous(const Element&); |
| 21 static Element* firstAssignedToSlot(HTMLSlotElement&); |
| 22 static Element* lastAssignedToSlot(HTMLSlotElement&); |
| 23 |
| 19 static bool isSlotScoped(const Element&); | 24 static bool isSlotScoped(const Element&); |
| 20 }; | 25 }; |
| 21 | 26 |
| 22 } // namespace blink | 27 } // namespace blink |
| 23 | 28 |
| 24 #endif | 29 #endif |
| OLD | NEW |