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

Unified Diff: Source/core/page/FocusController.cpp

Issue 667403002: Rename nodes/elements traversal function names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename to startsAt (and startsAfter) Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/xml/XPathNodeSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FocusController.cpp
diff --git a/Source/core/page/FocusController.cpp b/Source/core/page/FocusController.cpp
index 2453e2841cf533d9d69c07856e3e59f6b9e69189..099804d6a6874c75eb84676edaffb218c928aa52 100644
--- a/Source/core/page/FocusController.cpp
+++ b/Source/core/page/FocusController.cpp
@@ -545,7 +545,7 @@ static Node* nextNodeWithGreaterTabIndex(Node* start, int tabIndex)
// Search is inclusive of start
int winningTabIndex = std::numeric_limits<short>::max() + 1;
Node* winner = 0;
- for (Node& node : NodeTraversal::from(start)) {
+ for (Node& node : NodeTraversal::startsAt(start)) {
if (shouldVisit(&node) && node.tabIndex() > tabIndex && node.tabIndex() < winningTabIndex) {
winner = &node;
winningTabIndex = node.tabIndex();
@@ -576,7 +576,7 @@ Node* FocusController::nextFocusableNode(FocusNavigationScope scope, Node* start
int tabIndex = adjustedTabIndex(start);
// If a node is excluded from the normal tabbing cycle, the next focusable node is determined by tree order
if (tabIndex < 0) {
- for (Node& node : NodeTraversal::fromNext(*start)) {
+ for (Node& node : NodeTraversal::startsAfter(*start)) {
if (shouldVisit(&node) && adjustedTabIndex(&node) >= 0)
return &node;
}
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/xml/XPathNodeSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698