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

Unified Diff: Source/core/editing/TextIterator.h

Issue 753573003: Copy and paste sometimes removes spaces between words. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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: Source/core/editing/TextIterator.h
diff --git a/Source/core/editing/TextIterator.h b/Source/core/editing/TextIterator.h
index 569df32a1a26b83c4809057151eeb0faa6c206bb..d50970e172528f66e4c253fbd69809e77ed5daac 100644
--- a/Source/core/editing/TextIterator.h
+++ b/Source/core/editing/TextIterator.h
@@ -47,7 +47,8 @@ enum TextIteratorBehavior {
TextIteratorEmitsImageAltText = 1 << 5,
TextIteratorEntersAuthorShadowRoots = 1 << 6,
TextIteratorEmitsObjectReplacementCharacter = 1 << 7,
- TextIteratorDoesNotBreakAtReplacedElement = 1 << 8
+ TextIteratorDoesNotBreakAtReplacedElement = 1 << 8,
+ TextIteratorBehavesAsIfNodesFollowing = 1 << 9,
};
typedef unsigned TextIteratorBehaviorFlags;
@@ -233,6 +234,8 @@ private:
bool m_emitsObjectReplacementCharacter;
bool m_breaksAtReplacedElement;
+
+ bool m_hasNodesFollowing;
};
// Iterates through the DOM range, returning all the text, and 0-length boundaries

Powered by Google App Engine
This is Rietveld 408576698