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

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

Issue 2649923012: Avoid reporting space as NBSP in TextInputState. (Closed)
Patch Set: Code review comments Created 3 years, 11 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/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index 1b11d96ae61cb76ff1d74a0a80537ee9d18c8bf5..cc00adb076abfd2b689b905e97776393ac779abb 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -891,7 +891,8 @@ WebTextInputInfo InputMethodController::textInputInfo() const {
// Emits an object replacement character for each replaced element so that
// it is exposed to IME and thus could be deleted by IME on android.
info.value = plainText(EphemeralRange::rangeOfContents(*element),
- TextIteratorEmitsObjectReplacementCharacter);
+ TextIteratorEmitsObjectReplacementCharacter |
+ TextIteratorEmitsSpaceForNbsp);
if (info.value.isEmpty())
return info;

Powered by Google App Engine
This is Rietveld 408576698