Index: Source/core/platform/graphics/mac/ComplexTextController.cpp |
diff --git a/Source/core/platform/graphics/mac/ComplexTextController.cpp b/Source/core/platform/graphics/mac/ComplexTextController.cpp |
index e6a3ffcbd7cc654c7479323aeb87e570f4e5f984..5149182fc7b1e0d2e1e37c24204e8a5b6329c6ed 100644 |
--- a/Source/core/platform/graphics/mac/ComplexTextController.cpp |
+++ b/Source/core/platform/graphics/mac/ComplexTextController.cpp |
@@ -206,10 +206,10 @@ int ComplexTextController::offsetForPosition(float h, bool includePartialGlyphs) |
int stringLength = complexTextRun.stringLength(); |
TextBreakIterator* cursorPositionIterator = cursorMovementIterator(complexTextRun.characters(), stringLength); |
int clusterStart; |
- if (isTextBreak(cursorPositionIterator, hitIndex)) |
+ if (cursorPositionIterator->isBoundary(hitIndex)) |
clusterStart = hitIndex; |
else { |
- clusterStart = textBreakPreceding(cursorPositionIterator, hitIndex); |
+ clusterStart = cursorPositionIterator->preceding(hitIndex); |
if (clusterStart == TextBreakDone) |
clusterStart = 0; |
} |
@@ -217,7 +217,7 @@ int ComplexTextController::offsetForPosition(float h, bool includePartialGlyphs) |
if (!includePartialGlyphs) |
return complexTextRun.stringLocation() + clusterStart; |
- int clusterEnd = textBreakFollowing(cursorPositionIterator, hitIndex); |
+ int clusterEnd = cursorPositionIterator->following(hitIndex); |
if (clusterEnd == TextBreakDone) |
clusterEnd = stringLength; |