| Index: third_party/WebKit/Source/core/dom/Range.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp
|
| index 60ddc576072db4e9b545b0c43124ad326f4d6bb1..ffc338f5f9ef5b2d38a854c1e21edf754e102a79 100644
|
| --- a/third_party/WebKit/Source/core/dom/Range.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Range.cpp
|
| @@ -1218,7 +1218,7 @@ void Range::surroundContents(RawPtr<Node> passNewParent, ExceptionState& excepti
|
| return;
|
| }
|
|
|
| - if (newParent->containsIncludingShadowDOM(m_start.container())) {
|
| + if (newParent->isShadowIncludingInclusiveAncestorOf(m_start.container())) {
|
| exceptionState.throwDOMException(HierarchyRequestError, "The node provided contains the insertion point; it may not be inserted into itself.");
|
| return;
|
| }
|
|
|