summaryrefslogtreecommitdiffstats
path: root/WebCore/xml/XPathStep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/xml/XPathStep.cpp')
-rw-r--r--WebCore/xml/XPathStep.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/xml/XPathStep.cpp b/WebCore/xml/XPathStep.cpp
index 6e60952..ddd8c3c 100644
--- a/WebCore/xml/XPathStep.cpp
+++ b/WebCore/xml/XPathStep.cpp
@@ -255,11 +255,11 @@ void Step::nodesInAxis(Node* context, NodeSet& nodes) const
return;
case ParentAxis:
if (context->isAttributeNode()) {
- Node* n = static_cast<Attr*>(context)->ownerElement();
+ Element* n = static_cast<Attr*>(context)->ownerElement();
if (nodeMatches(n, ParentAxis, m_nodeTest))
nodes.append(n);
} else {
- Node* n = context->parentNode();
+ ContainerNode* n = context->parentNode();
if (n && nodeMatches(n, ParentAxis, m_nodeTest))
nodes.append(n);
}