| 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 27cd215fe716607ca37b4b44533a735d84442dc5..69c0d6766a6609691659fad19b97e4cdfad6a39f 100644
|
| --- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| @@ -402,7 +402,7 @@ void DOMSelection::addRange(Range* newRange)
|
| if (!m_frame)
|
| return;
|
|
|
| - if (!newRange->inDocument()) {
|
| + if (!newRange->inShadowIncludingDocument()) {
|
| addConsoleError("The given range isn't in document.");
|
| return;
|
| }
|
|
|