| Index: third_party/WebKit/Source/core/xml/XPathNodeSet.cpp
|
| diff --git a/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp b/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp
|
| index 5a52d5bf9f5f3f41ad9b094c99c89771f0555e8c..15bbf16ef6e9544ccb43d10579bcc2c93fb35691 100644
|
| --- a/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp
|
| @@ -199,7 +199,7 @@ static Node* findRootNode(Node* node)
|
| {
|
| if (node->isAttributeNode())
|
| node = toAttr(node)->ownerElement();
|
| - if (node->inDocument()) {
|
| + if (node->inShadowIncludingDocument()) {
|
| node = &node->document();
|
| } else {
|
| while (Node* parent = node->parentNode())
|
|
|