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

Unified Diff: third_party/WebKit/Source/core/editing/PositionIterator.cpp

Issue 1864963002: Rename unchecked functions to appropriate name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo /nextGraphmeBoundaryOf/nextGraphemeBoundaryOf/ Created 4 years, 8 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: third_party/WebKit/Source/core/editing/PositionIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/PositionIterator.cpp b/third_party/WebKit/Source/core/editing/PositionIterator.cpp
index 5846f3901dcd338d6adaccd29c8dd656e712a4f4..bd2d654de22133166eb36fc72ad91147554d8fe7 100644
--- a/third_party/WebKit/Source/core/editing/PositionIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/PositionIterator.cpp
@@ -158,7 +158,7 @@ void PositionIteratorAlgorithm<Strategy>::increment()
// In this case |anchor| is a leaf(E,F,C,G or H) and
// |m_offsetInAnchor| is not on the end of |anchor|.
// Then just increment |m_offsetInAnchor|.
- m_offsetInAnchor = uncheckedNextOffset(m_anchorNode, m_offsetInAnchor);
+ m_offsetInAnchor = nextGraphemeBoundaryOf(m_anchorNode, m_offsetInAnchor);
} else {
// Case #3. This is the next of Case #2 or #3.
// Position is the end of |anchor|.
@@ -264,7 +264,7 @@ void PositionIteratorAlgorithm<Strategy>::decrement()
// In this case |anchor| is a leaf(E,F,C,G or H) and
// |m_offsetInAnchor| is not on the beginning of |anchor|.
// Then just decrement |m_offsetInAnchor|.
- m_offsetInAnchor = uncheckedPreviousOffset(m_anchorNode, m_offsetInAnchor);
+ m_offsetInAnchor = previousGraphemeBoundaryOf(m_anchorNode, m_offsetInAnchor);
return;
} else {
// Case #3-b. This is a reverse of increment()::Case#1.

Powered by Google App Engine
This is Rietveld 408576698