| 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 5bc034fe69b6bc638690d634e74029c7670b5ca6..19799caf7f6b9328cdebe2e9510d374021157c5b 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -44,6 +44,7 @@
|
| #include "core/dom/ElementRareData.h"
|
| #include "core/dom/ElementTraversal.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/dom/GetRootNodeOptions.h"
|
| #include "core/dom/LayoutTreeBuilderTraversal.h"
|
| #include "core/dom/NodeRareData.h"
|
| #include "core/dom/NodeTraversal.h"
|
| @@ -381,6 +382,11 @@ Node& Node::treeRoot() const
|
| return const_cast<Node&>(*node);
|
| }
|
|
|
| +Node* Node::getRootNode(const GetRootNodeOptions& options) const
|
| +{
|
| + return (options.hasComposed() && options.composed()) ? &shadowIncludingRoot() : &treeRoot();
|
| +}
|
| +
|
| Node* Node::insertBefore(Node* newChild, Node* refChild, ExceptionState& exceptionState)
|
| {
|
| if (isContainerNode())
|
|
|