| Index: third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| index fea0857024500eb67076f4e8d4e1b47a87135ea9..06b2b29cee3bbf52179c973a42b3182b1a85eba4 100644
|
| --- a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| @@ -279,7 +279,7 @@ bool FlatTreeTraversal::isDescendantOf(const Node& node, const Node& other)
|
| {
|
| assertPrecondition(node);
|
| assertPrecondition(other);
|
| - if (!hasChildren(other) || node.inShadowIncludingDocument() != other.inShadowIncludingDocument())
|
| + if (!hasChildren(other) || node.isConnected() != other.isConnected())
|
| return false;
|
| for (const ContainerNode* n = traverseParent(node); n; n = traverseParent(*n)) {
|
| if (n == other)
|
|
|