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

Unified Diff: sky/engine/core/dom/ContainerNode.cpp

Issue 1048333006: Fix getChildElements. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | sky/tests/dom/getChildElements.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/ContainerNode.cpp
diff --git a/sky/engine/core/dom/ContainerNode.cpp b/sky/engine/core/dom/ContainerNode.cpp
index a5e43800e11681275972f3f9380c01ef4dd95569..98048d2ef1f855cb86a8956e8638410272702f36 100644
--- a/sky/engine/core/dom/ContainerNode.cpp
+++ b/sky/engine/core/dom/ContainerNode.cpp
@@ -875,7 +875,7 @@ Vector<RefPtr<Node>> ContainerNode::getChildNodes() const
Vector<RefPtr<Element>> ContainerNode::getChildElements() const
{
Vector<RefPtr<Element>> result;
- for (Element* element = ElementTraversal::firstWithin(*this); element; element = ElementTraversal::next(*element, this))
+ for (Element* element = ElementTraversal::firstChild(*this); element; element = ElementTraversal::nextSibling(*element))
result.append(element);
return result;
}
« no previous file with comments | « no previous file | sky/tests/dom/getChildElements.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698