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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIterator.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/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..dfa646c695064d3b442c1a82a571456368686d6d 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
@@ -168,9 +168,7 @@ TextIteratorAlgorithm<Strategy>::TextIteratorAlgorithm(
m_handleShadowRoot(false),
m_firstLetterStartOffset(kInvalidOffset),
m_remainingTextStartOffset(kInvalidOffset),
- // The call to emitsOriginalText() must occur after m_behavior is
- // initialized.
- m_textState(emitsOriginalText()) {
+ m_textState(m_behavior) {
DCHECK(start.isNotNull());
DCHECK(end.isNotNull());

Powered by Google App Engine
This is Rietveld 408576698