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

Unified Diff: Source/core/dom/TreeScope.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/dom/NodeTraversal.h ('k') | Source/core/dom/VisitedLinkState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TreeScope.cpp
diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
index 0000b656ae3dd528763ad51bdadbc725e7921e41..51f7bce76d1d2ed060635d3e04849f84adc4dd20 100644
--- a/Source/core/dom/TreeScope.cpp
+++ b/Source/core/dom/TreeScope.cpp
@@ -298,7 +298,7 @@ HTMLLabelElement* TreeScope::labelElementForId(const AtomicString& forAttributeV
if (!m_labelsByForAttribute) {
// Populate the map on first access.
m_labelsByForAttribute = DocumentOrderedMap::create();
- for (HTMLLabelElement& label : Traversal<HTMLLabelElement>::fromNext(rootNode())) {
+ for (HTMLLabelElement& label : Traversal<HTMLLabelElement>::startsAfter(rootNode())) {
const AtomicString& forValue = label.fastGetAttribute(forAttr);
if (!forValue.isEmpty())
addLabel(forValue, &label);
@@ -329,7 +329,7 @@ Element* TreeScope::findAnchor(const String& name)
return 0;
if (Element* element = getElementById(AtomicString(name)))
return element;
- for (HTMLAnchorElement& anchor : Traversal<HTMLAnchorElement>::fromNext(rootNode())) {
+ for (HTMLAnchorElement& anchor : Traversal<HTMLAnchorElement>::startsAfter(rootNode())) {
if (rootNode().document().inQuirksMode()) {
// Quirks mode, case insensitive comparison of names.
if (equalIgnoringCase(anchor.name(), name))
« no previous file with comments | « Source/core/dom/NodeTraversal.h ('k') | Source/core/dom/VisitedLinkState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698