| 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 19c0817664cf970620c62313c1367cd116125b07..910761ef47f3c5e967e9854973470d372b4ae3ad 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| @@ -211,7 +211,6 @@ void FrameSelection::setSelectionAlgorithm(
|
| m_handleVisibility == handleVisibility) {
|
| // Even if selection was not changed, selection offsets may have been
|
| // changed.
|
| - m_frame->inputMethodController().cancelCompositionIfSelectionIsInvalid();
|
| notifyLayoutObjectOfSelectionChange(userTriggered);
|
| return;
|
| }
|
| @@ -258,10 +257,9 @@ void FrameSelection::setSelectionAlgorithm(
|
| // boundary, selection for the DOM tree is shrunk while that for the
|
| // flat tree is not. Additionally, this case occurs in some edge cases.
|
| // See also: editing/pasteboard/4076267-3.html
|
| - if (oldSelection == m_selectionEditor->visibleSelection<Strategy>()) {
|
| - m_frame->inputMethodController().cancelCompositionIfSelectionIsInvalid();
|
| + if (oldSelection == m_selectionEditor->visibleSelection<Strategy>())
|
| return;
|
| - }
|
| +
|
| m_frame->editor().respondToChangedSelection(oldSelectionStart, options);
|
| if (userTriggered == UserTriggered) {
|
| ScrollAlignment alignment;
|
|
|