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

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

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/TextIteratorTextState.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
index fc4cb53757fb3ccc18b5bd82606105dca4617645..9ad5bad6e7c003e663d3d2953b5315ac6e2fb8f0 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
@@ -29,6 +29,7 @@
#include "core/CoreExport.h"
#include "core/dom/Range.h"
#include "core/editing/iterators/ForwardsTextBuffer.h"
+#include "core/editing/iterators/TextIteratorFlags.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -39,7 +40,7 @@ class CORE_EXPORT TextIteratorTextState {
STACK_ALLOCATED();
public:
- explicit TextIteratorTextState(bool emitsOriginalText);
+ explicit TextIteratorTextState(TextIteratorBehaviorFlags);
~TextIteratorTextState() {}
const String& string() const { return m_text; }
@@ -98,7 +99,8 @@ class CORE_EXPORT TextIteratorTextState {
// any other content
bool m_hasEmitted;
UChar m_lastCharacter;
- bool m_emitsOriginalText;
+ const bool m_emitsOriginalText;
+ const bool m_emitsSpaceForNbsp;
// Stores the length of :first-letter when we are at the remaining text.
// Equals to 0 in all other cases.

Powered by Google App Engine
This is Rietveld 408576698