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

Unified Diff: Source/core/dom/ParentNode.h

Issue 229213002: Make HTMLCollection / NodeList backward traversal consistent with forward one (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
Index: Source/core/dom/ParentNode.h
diff --git a/Source/core/dom/ParentNode.h b/Source/core/dom/ParentNode.h
index dda6a8afb7da6170f1c740b3dee34ec320dee0ef..7d6a67f298b498fb0c51fd56233bb4bda23d05cd 100644
--- a/Source/core/dom/ParentNode.h
+++ b/Source/core/dom/ParentNode.h
@@ -45,12 +45,12 @@ public:
static Element* firstElementChild(ContainerNode& node)
{
- return ElementTraversal::firstWithin(node);
+ return ElementTraversal::firstChild(node);
}
static Element* lastElementChild(ContainerNode& node)
{
- return ElementTraversal::lastWithin(node);
+ return ElementTraversal::lastChild(node);
}
static unsigned childElementCount(ContainerNode& node)

Powered by Google App Engine
This is Rietveld 408576698