| 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 ef638aba3918401364295269158db10e2b3a95d0..89d93e27a4d7a683966ad0258792e67e9d3c0e92 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -450,6 +450,16 @@ Node* Node::pseudoAwareLastChild() const
|
| return lastChild();
|
| }
|
|
|
| +Node& Node::treeRoot() const
|
| +{
|
| + if (isInTreeScope())
|
| + return treeScope().rootNode();
|
| + const Node* node = this;
|
| + while (node->parentNode())
|
| + node = node->parentNode();
|
| + return const_cast<Node&>(*node);
|
| +}
|
| +
|
| PassRefPtrWillBeRawPtr<Node> Node::insertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node* refChild, ExceptionState& exceptionState)
|
| {
|
| if (isContainerNode())
|
|
|