| Index: ui/gfx/render_text_linux.cc
|
| diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc
|
| index 8700d5d0631bfbbf8cc1395cc1acc7535503ab75..b36ed1db5475beceb5ba8b86f319fa0fe51f1f2a 100644
|
| --- a/ui/gfx/render_text_linux.cc
|
| +++ b/ui/gfx/render_text_linux.cc
|
| @@ -182,34 +182,6 @@ SelectionModel RenderTextLinux::AdjacentCharSelectionModel(
|
| FirstSelectionModelInsideRun(item) : LastSelectionModelInsideRun(item);
|
| }
|
|
|
| -SelectionModel RenderTextLinux::AdjacentWordSelectionModel(
|
| - const SelectionModel& selection,
|
| - VisualCursorDirection direction) {
|
| - if (obscured())
|
| - return EdgeSelectionModel(direction);
|
| -
|
| - base::i18n::BreakIterator iter(text(), base::i18n::BreakIterator::BREAK_WORD);
|
| - bool success = iter.Init();
|
| - DCHECK(success);
|
| - if (!success)
|
| - return selection;
|
| -
|
| - SelectionModel cur(selection);
|
| - for (;;) {
|
| - cur = AdjacentCharSelectionModel(cur, direction);
|
| - GSList* run = GetRunContainingCaret(cur);
|
| - if (!run)
|
| - break;
|
| - PangoItem* item = reinterpret_cast<PangoLayoutRun*>(run->data)->item;
|
| - size_t cursor = cur.caret_pos();
|
| - if (IsForwardMotion(direction, item) ?
|
| - iter.IsEndOfWord(cursor) : iter.IsStartOfWord(cursor))
|
| - break;
|
| - }
|
| -
|
| - return cur;
|
| -}
|
| -
|
| ui::Range RenderTextLinux::GetGlyphBounds(size_t index) {
|
| PangoRectangle pos;
|
| pango_layout_index_to_pos(layout_, TextIndexToLayoutIndex(index), &pos);
|
|
|