| 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 df3a10d601da448046f48b3ae3b1b655a928d5b2..8d09b553db8d9a964fabfac0995e8a6f6b3cfd4f 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;
|
|
|
|
|