Index: third_party/WebKit/WebCore/rendering/RenderText.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/rendering/RenderText.cpp (revision 11154) |
+++ third_party/WebKit/WebCore/rendering/RenderText.cpp (working copy) |
@@ -1147,7 +1147,7 @@ |
int RenderText::previousOffset(int current) const |
{ |
StringImpl* si = m_text.get(); |
- TextBreakIterator* iterator = characterBreakIterator(si->characters(), si->length()); |
+ TextBreakIterator* iterator = cursorMovementIterator(si->characters(), si->length()); |
if (!iterator) |
return current - 1; |
@@ -1270,7 +1270,7 @@ |
int RenderText::nextOffset(int current) const |
{ |
StringImpl* si = m_text.get(); |
- TextBreakIterator* iterator = characterBreakIterator(si->characters(), si->length()); |
+ TextBreakIterator* iterator = cursorMovementIterator(si->characters(), si->length()); |
if (!iterator) |
return current + 1; |