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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
index 69bc7851635c2843cc2a421890729ff86b32017a..9083eb7dc7d572fe39557b13615f5679e78c8613 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
@@ -170,7 +170,7 @@ TextIteratorAlgorithm<Strategy>::TextIteratorAlgorithm(
m_remainingTextStartOffset(kInvalidOffset),
// The call to emitsOriginalText() must occur after m_behavior is
// initialized.
- m_textState(emitsOriginalText()) {
+ m_textState(emitsOriginalText(), emitsSpaceForNbsp()) {
DCHECK(start.isNotNull());
DCHECK(end.isNotNull());

Powered by Google App Engine
This is Rietveld 408576698