Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.cpp

Issue 2370663002: Remove logic to reset input method more than needed (Closed)
Patch Set: remove aura change Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 61653f2e4bb10791e9c466b62f9ad4886b742cbb..bad3d9ed3ca9cc2621759ccd934657edf3e20352 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -283,7 +283,6 @@ void FrameSelection::setSelectionAlgorithm(const VisibleSelectionTemplate<Strate
if (m_selectionEditor->visibleSelection<Strategy>() == s) {
// Even if selection was not changed, selection offsets may have been
// changed.
- m_frame->inputMethodController().cancelCompositionIfSelectionIsInvalid();
yosin_UTC9 2016/09/28 03:38:50 Note: This catches replacing Text node with same l
Changwan Ryu 2016/09/28 06:20:12 Hmm.. My understanding is that there is no JS way
notifyLayoutObjectOfSelectionChange(userTriggered);
return;
}
@@ -330,10 +329,9 @@ void FrameSelection::setSelectionAlgorithm(const VisibleSelectionTemplate<Strate
// 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();
yosin_UTC9 2016/09/28 03:38:50 Ditto as L286.
Changwan Ryu 2016/09/28 06:20:12 Explained in L286.
+ if (oldSelection == m_selectionEditor->visibleSelection<Strategy>())
return;
- }
+
m_frame->editor().respondToChangedSelection(oldSelectionInDOMTree, options);
if (userTriggered == UserTriggered) {
ScrollAlignment alignment;

Powered by Google App Engine
This is Rietveld 408576698