diff options
Diffstat (limited to 'Source/WebCore/editing/TextIterator.h')
-rw-r--r-- | Source/WebCore/editing/TextIterator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/WebCore/editing/TextIterator.h b/Source/WebCore/editing/TextIterator.h index 0f1a6fd..9fe4ceb 100644 --- a/Source/WebCore/editing/TextIterator.h +++ b/Source/WebCore/editing/TextIterator.h @@ -41,7 +41,8 @@ enum TextIteratorBehavior { TextIteratorEmitsCharactersBetweenAllVisiblePositions = 1 << 0, TextIteratorEntersTextControls = 1 << 1, TextIteratorEmitsTextsWithoutTranscoding = 1 << 2, - TextIteratorIgnoresStyleVisibility = 1 << 3 + TextIteratorIgnoresStyleVisibility = 1 << 3, + TextIteratorEmitsObjectReplacementCharacters = 1 << 4 }; // FIXME: Can't really answer this question correctly without knowing the white-space mode. @@ -98,6 +99,7 @@ public: static int rangeLength(const Range*, bool spacesForReplacedElements = false); static PassRefPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength, bool spacesForReplacedElements = false); + static bool locationAndLengthFromRange(const Range*, size_t& location, size_t& length); static PassRefPtr<Range> subrange(Range* entireRange, int characterOffset, int characterCount); private: @@ -178,6 +180,8 @@ private: bool m_handledFirstLetter; // Used when the visibility of the style should not affect text gathering. bool m_ignoresStyleVisibility; + // Used when emitting the special 0xFFFC character is required. + bool m_emitsObjectReplacementCharacters; }; // Iterates through the DOM range, returning all the text, and 0-length boundaries |