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

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

Issue 1330233003: Revert of Avoid style clobbering in setCompositionFromExistingText. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/core/editing/FrameSelection.cpp
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp
index f60ecb7d607182f32bb3e02dcd95eccebb71848a..2969141df7194bf5aff4338d959ad7d23ab325dd 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -314,10 +314,8 @@
// boundary, selection for the DOM tree is shrunk while that for the
// composed tree is not. Additionally, this case occurs in some edge cases.
// See also: editing/pasteboard/4076267-3.html
- if (VisibleSelection::InDOMTree::equalSelections(oldSelection, m_selection)) {
- m_frame->inputMethodController().cancelCompositionIfSelectionIsInvalid();
- return;
- }
+ if (VisibleSelection::InDOMTree::equalSelections(oldSelection, m_selection))
+ return;
m_frame->editor().respondToChangedSelection(oldSelection, options);
if (userTriggered == UserTriggered) {
ScrollAlignment alignment;
« no previous file with comments | « Source/core/editing/CompositionUnderlineRangeFilterTest.cpp ('k') | Source/core/editing/InputMethodController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698