| Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| index 69a2215ddc23d7a23cd456ef65a4f40d88ca2649..ee7d1154c98ef0cbcea3cb84f8cea8c43c99daae 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| @@ -304,7 +304,7 @@ void FrameSelection::setSelectionAlgorithm(
|
|
|
| const VisibleSelectionTemplate<Strategy> oldSelection =
|
| visibleSelection<Strategy>();
|
| - const VisibleSelection oldSelectionInDOMTree = selection();
|
| + const Position& oldSelectionStart = selection().start();
|
|
|
| m_selectionEditor->setVisibleSelection(s, options);
|
| m_frameCaret->setCaretRectNeedsUpdate();
|
| @@ -350,7 +350,7 @@ void FrameSelection::setSelectionAlgorithm(
|
| m_frame->inputMethodController().cancelCompositionIfSelectionIsInvalid();
|
| return;
|
| }
|
| - m_frame->editor().respondToChangedSelection(oldSelectionInDOMTree, options);
|
| + m_frame->editor().respondToChangedSelection(oldSelectionStart, options);
|
| if (userTriggered == UserTriggered) {
|
| ScrollAlignment alignment;
|
|
|
|
|