| 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 4b4556ed9d7511399cec1209ca999155cd4982cb..f50cf2dba5784b8c3267098f010a5fed90f0873c 100644
|
| --- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| @@ -295,8 +295,8 @@ void DOMSelection::setBaseAndExtent(Node* baseNode, int baseOffset, Node* extent
|
|
|
| VisiblePosition visibleBase = createVisiblePosition(createPosition(baseNode, baseOffset));
|
| VisiblePosition visibleExtent = createVisiblePosition(createPosition(extentNode, extentOffset));
|
| -
|
| - m_frame->selection().moveTo(visibleBase, visibleExtent);
|
| + const bool selectionHasDirection = true;
|
| + m_frame->selection().setSelection(VisibleSelection(visibleBase, visibleExtent, selectionHasDirection));
|
| }
|
|
|
| void DOMSelection::modify(const String& alterString, const String& directionString, const String& granularityString)
|
|
|