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

Unified Diff: Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp

Issue 1300813002: Get rid of a redundant function Position::deprecatedEditingOffset() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-18T17:24:05 Created 5 years, 4 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/VisibleUnits.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
diff --git a/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp b/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
index 63ff7bb8bfc015bf9b2f9b1050bddd2ed144b1aa..c81848ecfa5bb4ce4e9a7b6f23b92462a41f8aff 100644
--- a/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
+++ b/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
@@ -86,8 +86,8 @@ SimplifiedBackwardsTextIteratorAlgorithm<Strategy>::SimplifiedBackwardsTextItera
if (!startNode)
return;
Node* endNode = end.anchorNode();
- int startOffset = start.deprecatedEditingOffset();
- int endOffset = end.deprecatedEditingOffset();
+ int startOffset = start.computeEditingOffset();
+ int endOffset = end.computeEditingOffset();
init(startNode, endNode, startOffset, endOffset);
}
« no previous file with comments | « Source/core/editing/VisibleUnits.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698