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

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

Issue 165083002: Issue 318925: Copy and paste sometimes removes spaces between words (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Issue 318925: Copy and paste sometimes removes spaces between words Created 6 years, 10 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: Source/core/editing/TextIterator.h
diff --git a/Source/core/editing/TextIterator.h b/Source/core/editing/TextIterator.h
index 9d73d8add4d2efc3cdb64e76554a2bc2982e141d..6dee1b541eab1a0db2bb6e7bae7fb4dcc9d599c7 100644
--- a/Source/core/editing/TextIterator.h
+++ b/Source/core/editing/TextIterator.h
@@ -44,7 +44,8 @@ enum TextIteratorBehavior {
TextIteratorEmitsOriginalText = 1 << 3,
TextIteratorStopsOnFormControls = 1 << 4,
TextIteratorEmitsImageAltText = 1 << 5,
- TextIteratorEntersAuthorShadowRoots = 1 << 6
+ TextIteratorEntersAuthorShadowRoots = 1 << 6,
+ TextIteratorBehavesAsIfNodesFollowing = 1 << 7,
};
typedef unsigned TextIteratorBehaviorFlags;
@@ -214,6 +215,7 @@ private:
bool m_emitsImageAltText;
bool m_entersAuthorShadowRoots;
+ bool m_hasNodesFollowing;
};
// Iterates through the DOM range, returning all the text, and 0-length boundaries
« no previous file with comments | « LayoutTests/editing/pasteboard/copy-text-with-wrapped-tag-expected.txt ('k') | Source/core/editing/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698