Index: Source/core/editing/TextIterator.h |
diff --git a/Source/core/editing/TextIterator.h b/Source/core/editing/TextIterator.h |
index cbe398e7ffbd571bdb8c98b7a93d73fa447ff74a..569df32a1a26b83c4809057151eeb0faa6c206bb 100644 |
--- a/Source/core/editing/TextIterator.h |
+++ b/Source/core/editing/TextIterator.h |
@@ -46,7 +46,8 @@ enum TextIteratorBehavior { |
TextIteratorStopsOnFormControls = 1 << 4, |
TextIteratorEmitsImageAltText = 1 << 5, |
TextIteratorEntersAuthorShadowRoots = 1 << 6, |
- TextIteratorEmitsObjectReplacementCharacter = 1 << 7 |
+ TextIteratorEmitsObjectReplacementCharacter = 1 << 7, |
+ TextIteratorDoesNotBreakAtReplacedElement = 1 << 8 |
}; |
typedef unsigned TextIteratorBehaviorFlags; |
@@ -119,6 +120,8 @@ public: |
Position startPosition() const; |
Position endPosition() const; |
+ bool breaksAtReplacedElement() { return m_breaksAtReplacedElement; } |
+ |
// Computes the length of the given range using a text iterator. The default |
// iteration behavior is to always emit object replacement characters for |
// replaced elements. When |forSelectionPreservation| is set to true, it |
@@ -228,6 +231,8 @@ private: |
bool m_entersAuthorShadowRoots; |
bool m_emitsObjectReplacementCharacter; |
+ |
+ bool m_breaksAtReplacedElement; |
}; |
// Iterates through the DOM range, returning all the text, and 0-length boundaries |