| Index: third_party/WebKit/Source/core/dom/Node.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
|
| index b1503e728a45d3b962953ca5e1223aaa61658fdf..65751834bcdb3360dfda0b2a7f8034cf45761547 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -843,6 +843,15 @@ bool Node::isShadowIncludingInclusiveAncestorOf(const Node* node) const
|
| return false;
|
| }
|
|
|
| +Node* Node::retarget(const Node& target) const
|
| +{
|
| + for (const Node* ancestor = ⌖ ancestor; ancestor = ancestor->shadowHost()) {
|
| + if (treeScope() == ancestor->treeScope())
|
| + return const_cast<Node*>(ancestor);
|
| + }
|
| + return nullptr;
|
| +}
|
| +
|
| bool Node::containsIncludingHostElements(const Node& node) const
|
| {
|
| const Node* current = &node;
|
|
|