Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef AssignedElementTraversal_h | |
| 6 #define AssignedElementTraversal_h | |
| 7 | |
| 8 namespace blink { | |
| 9 | |
| 10 class Element; | |
| 11 class HTMLSlotElement; | |
| 12 | |
| 13 class AssignedElementTraversal { | |
| 14 public: | |
| 15 static HTMLSlotElement* slot(const Element& current); | |
|
hayato
2016/03/03 05:42:22
Nit: How about renaming this to a more descriptive
yuzuchan
2016/03/04 03:48:37
Renamed to findScopeOwnerSlot.
| |
| 16 static Element* assignedAncestor(const Element& current); | |
|
hayato
2016/03/03 05:42:22
Nit: How about renaming this function to nearestAn
yuzuchan
2016/03/04 03:48:37
Done.
| |
| 17 static Element* next(const Element& current); | |
| 18 static Element* previous(const Element& current); | |
| 19 static bool isInAssignedScope(const Element& current); | |
|
hayato
2016/03/03 05:42:22
Nit: It might be difficult to understand what isIn
yuzuchan
2016/03/04 03:48:37
Renamed to isSlotScoped
| |
| 20 }; | |
| 21 | |
| 22 } // namespace blink | |
| 23 | |
| 24 #endif | |
| OLD | NEW |