| Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| index 5684cc449fb9ffecf989971f39f5394245b9758f..e80e5046aa13b75856a0e93291600facbb0c51f8 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| @@ -732,7 +732,7 @@ Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const
|
| template <typename Strategy>
|
| static bool isValidPosition(const PositionTemplate<Strategy>& position)
|
| {
|
| - if (!position.inShadowIncludingDocument())
|
| + if (!position.isConnected())
|
| return false;
|
|
|
| if (!position.isOffsetInAnchor())
|
| @@ -763,7 +763,7 @@ void VisibleSelectionTemplate<Strategy>::updateIfNeeded()
|
| template <typename Strategy>
|
| void VisibleSelectionTemplate<Strategy>::validatePositionsIfNeeded()
|
| {
|
| - if (!m_base.inShadowIncludingDocument() || !m_extent.inShadowIncludingDocument()) {
|
| + if (!m_base.isConnected() || !m_extent.isConnected()) {
|
| *this = VisibleSelectionTemplate();
|
| return;
|
| }
|
|
|