Index: Source/core/xml/XPathStep.cpp |
diff --git a/Source/core/xml/XPathStep.cpp b/Source/core/xml/XPathStep.cpp |
index d08013e005eb5561c8ed82d18384eb68f0f47f97..4687257be640943aedf1c4eadfe973105a3f7d93 100644 |
--- a/Source/core/xml/XPathStep.cpp |
+++ b/Source/core/xml/XPathStep.cpp |
@@ -327,7 +327,7 @@ void Step::nodesInAxis(Node* context, NodeSet& nodes) const |
Node* n = context; |
while (ContainerNode* parent = n->parentNode()) { |
- for (n = NodeTraversal::previous(n); n != parent; n = NodeTraversal::previous(n)) |
+ for (n = NodeTraversal::previous(*n); n != parent; n = NodeTraversal::previous(*n)) |
if (nodeMatches(n, PrecedingAxis, m_nodeTest)) |
nodes.append(n); |
n = parent; |