| 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 a37c99760c9f8acd921ceb3680c8a8269cab975c..7ffe495c928b4513fe9d0e7ad7fd1656fc809732 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.inDocument() != other.inDocument())
|
| + if (!hasChildren(other) || node.inShadowIncludingDocument() != other.inShadowIncludingDocument())
|
| return false;
|
| for (const ContainerNode* n = traverseParent(node); n; n = traverseParent(*n)) {
|
| if (n == other)
|
|
|