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

Unified Diff: Source/core/editing/htmlediting.cpp

Issue 1041463003: Remove methods of TextIterator that take Range objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/editing/htmlediting.cpp
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
index 22d87c90db0a2c122a570e8dcc986797f8d481a0..f36ea5afb019d4b001381f8f4a0657cfe4771ac0 100644
--- a/Source/core/editing/htmlediting.cpp
+++ b/Source/core/editing/htmlediting.cpp
@@ -1097,7 +1097,7 @@ int indexForVisiblePosition(const VisiblePosition& visiblePosition, RefPtrWillBe
RefPtrWillBeRawPtr<Range> range = Range::create(document, firstPositionInNode(scope.get()), p.parentAnchoredEquivalent());
- return TextIterator::rangeLength(range.get(), true);
+ return TextIterator::rangeLength(range->startPosition(), range->endPosition(), true);
}
VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope)

Powered by Google App Engine
This is Rietveld 408576698