| Index: Source/core/editing/TextIterator.h
|
| diff --git a/Source/core/editing/TextIterator.h b/Source/core/editing/TextIterator.h
|
| index f58621b7eadc856af825fdb0983ca093220448c7..b86b7ebaa2d087ddbed00129cf0cea28cdea1045 100644
|
| --- a/Source/core/editing/TextIterator.h
|
| +++ b/Source/core/editing/TextIterator.h
|
| @@ -232,6 +232,7 @@ class SimplifiedBackwardsTextIterator {
|
| STACK_ALLOCATED();
|
| public:
|
| explicit SimplifiedBackwardsTextIterator(const Range*, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
|
| + SimplifiedBackwardsTextIterator(const Position& start, const Position& end, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
|
|
|
| bool atEnd() const { return !m_positionNode || m_shouldStop; }
|
| void advance();
|
| @@ -258,6 +259,7 @@ public:
|
| Position startPosition() const;
|
|
|
| private:
|
| + void init(Node* startNode, Node* endNode, int startOffset, int endOffset);
|
| void exitNode();
|
| bool handleTextNode();
|
| RenderText* handleFirstLetter(int& startOffset, int& offsetInNode);
|
| @@ -354,6 +356,7 @@ class BackwardsCharacterIterator {
|
| STACK_ALLOCATED();
|
| public:
|
| explicit BackwardsCharacterIterator(const Range*, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
|
| + BackwardsCharacterIterator(const Position&, const Position&, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
|
|
|
| void advance(int);
|
|
|
|
|