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

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

Issue 1707443003: Consider slots as a focus scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring in response to review comments Created 4 years, 9 months 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698