| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| index 3099e448e86b5b3c0ef131b5caadacacbff463b6..579918a3fa12f6b0488d529e499c00da932e5da0 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -1656,24 +1656,6 @@ unsigned LayoutText::resolvedTextLength() const
|
| return len;
|
| }
|
|
|
| -int LayoutText::previousOffset(int current) const
|
| -{
|
| - if (m_text.is8Bit())
|
| - return current - 1;
|
| -
|
| - StringImpl* textImpl = m_text.impl();
|
| - TextBreakIterator* iterator = cursorMovementIterator(textImpl->characters16(), textImpl->length());
|
| - if (!iterator)
|
| - return current - 1;
|
| -
|
| - long result = iterator->preceding(current);
|
| - if (result == TextBreakDone)
|
| - result = current - 1;
|
| -
|
| -
|
| - return result;
|
| -}
|
| -
|
| int LayoutText::previousOffsetForBackwardDeletion(int current) const
|
| {
|
| // Delete by one code point. Ideally we should delete grapheme where that
|
| @@ -1685,23 +1667,6 @@ int LayoutText::previousOffsetForBackwardDeletion(int current) const
|
| return current;
|
| }
|
|
|
| -int LayoutText::nextOffset(int current) const
|
| -{
|
| - if (m_text.is8Bit())
|
| - return current + 1;
|
| -
|
| - StringImpl* textImpl = m_text.impl();
|
| - TextBreakIterator* iterator = cursorMovementIterator(textImpl->characters16(), textImpl->length());
|
| - if (!iterator)
|
| - return current + 1;
|
| -
|
| - long result = iterator->following(current);
|
| - if (result == TextBreakDone)
|
| - result = current + 1;
|
| -
|
| - return result;
|
| -}
|
| -
|
| bool LayoutText::computeCanUseSimpleFontCodePath() const
|
| {
|
| if (m_text.is8Bit())
|
|
|