| Index: Source/core/editing/TextIterator.h
|
| diff --git a/Source/core/editing/TextIterator.h b/Source/core/editing/TextIterator.h
|
| index cbe398e7ffbd571bdb8c98b7a93d73fa447ff74a..f3b82a19076aa33fffd79d15e4f281456cc6a95a 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,
|
| + TextIteratorBreakAtZeroLengthBoundary = 1 << 8
|
| };
|
| typedef unsigned TextIteratorBehaviorFlags;
|
|
|
| @@ -119,6 +120,8 @@ public:
|
| Position startPosition() const;
|
| Position endPosition() const;
|
|
|
| + bool breakAtZeroLengthBoundary() { return m_breakAtZeroLengthBoundary; }
|
| +
|
| // 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_breakAtZeroLengthBoundary;
|
| };
|
|
|
| // Iterates through the DOM range, returning all the text, and 0-length boundaries
|
|
|