| Index: third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| index 342e161710946f6799587e44ce41b700345f3e1e..80f882bf6b01ce0fad08cb0ce2feaa24e4ddebe6 100644
|
| --- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| @@ -423,7 +423,7 @@ void DOMSelection::addRange(Range* newRange)
|
| addConsoleError("The given range does not belong to the current selection's document.");
|
| return;
|
| }
|
| - if (originalRange->startContainer()->treeScope() != newRange->startContainer()->treeScope()) {
|
| + if (originalRange->startContainer()->treeScopeOrDocument() != newRange->startContainer()->treeScopeOrDocument()) {
|
| addConsoleError("The given range and the current selection belong to two different document fragments.");
|
| return;
|
| }
|
|
|