| 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 49cbb0f8d75510f0dddfd8f457e0d0016f89a5ca..5aca8e7516a3d84a3af814e265a75c5da6321d98 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->inShadowIncludingDocument()) {
|
| + if (node->isConnected()) {
|
| node = &node->document();
|
| } else {
|
| while (Node* parent = node->parentNode())
|
|
|