Index: Source/core/xml/XPathNodeSet.cpp |
diff --git a/Source/core/xml/XPathNodeSet.cpp b/Source/core/xml/XPathNodeSet.cpp |
index 1f64ad03503e679ba4a03b0fbad0215f6073ffcd..c6219947ab493e31da3ba8fc52ec1663d15575ea 100644 |
--- a/Source/core/xml/XPathNodeSet.cpp |
+++ b/Source/core/xml/XPathNodeSet.cpp |
@@ -182,7 +182,7 @@ static Node* findRootNode(Node* node) |
if (node->isAttributeNode()) |
node = toAttr(node)->ownerElement(); |
if (node->inDocument()) |
- node = node->document(); |
+ node = &node->document(); |
else { |
while (Node* parent = node->parentNode()) |
node = parent; |