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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIterator.h

Issue 2649923012: Avoid reporting space as NBSP in TextInputState. (Closed)
Patch Set: 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/iterators/TextIterator.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.h b/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
index 713bcbb5f73143b830e276e4d682e85cfacd727e..e254173d4a97919c3bda710e56f0d9fa05e3a58d 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.h
@@ -176,6 +176,11 @@ class CORE_TEMPLATE_CLASS_EXPORT TextIteratorAlgorithm {
return m_behavior & TextIteratorEmitsOriginalText;
}
+ // Used when communicating text state to IME.
+ bool emitsSpaceForNbsp() const {
+ return m_behavior & TextIteratorEmitsSpaceForNbsp;
+ }
+
// Used when the visibility of the style should not affect text gathering.
bool ignoresStyleVisibility() const {
return m_behavior & TextIteratorIgnoresStyleVisibility;

Powered by Google App Engine
This is Rietveld 408576698