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

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

Issue 1041463003: Remove methods of TextIterator that take Range objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add assertions Created 5 years, 9 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
« no previous file with comments | « Source/core/editing/iterators/CharacterIterator.cpp ('k') | Source/core/editing/iterators/TextIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/TextIterator.h
diff --git a/Source/core/editing/iterators/TextIterator.h b/Source/core/editing/iterators/TextIterator.h
index 8fb08431c9891311cd4d0f7c14329aff024da165..d0fb6e00d51041cdae8ce3b699fb96871eedfcd1 100644
--- a/Source/core/editing/iterators/TextIterator.h
+++ b/Source/core/editing/iterators/TextIterator.h
@@ -52,7 +52,6 @@ void findPlainText(const Position& inputStart, const Position& inputEnd, const S
class CORE_EXPORT TextIterator {
STACK_ALLOCATED();
public:
- explicit TextIterator(const Range*, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
// [start, end] indicates the document range that the iteration should take place within (both ends inclusive).
TextIterator(const Position& start, const Position& end, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
~TextIterator();
@@ -100,7 +99,6 @@ public:
// replaced elements. When |forSelectionPreservation| is set to true, it
// also emits spaces for other non-text nodes using the
// |TextIteratorEmitsCharactersBetweenAllVisiblePosition| mode.
- static int rangeLength(const Range*, bool forSelectionPreservation = false);
static int rangeLength(const Position& start, const Position& end, bool forSelectionPreservation = false);
static PassRefPtrWillBeRawPtr<Range> subrange(Range* entireRange, int characterOffset, int characterCount);
static void subrange(Position& start, Position& end, int characterOffset, int characterCount);
« no previous file with comments | « Source/core/editing/iterators/CharacterIterator.cpp ('k') | Source/core/editing/iterators/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698