| Index: ui/views/controls/textfield/textfield_model.cc
|
| diff --git a/ui/views/controls/textfield/textfield_model.cc b/ui/views/controls/textfield/textfield_model.cc
|
| index db8e92466851cd4ee3957ead1ae6e7cb0ae9e371..5738887b7256d5c84e2aa333472fae50bc42ec25 100644
|
| --- a/ui/views/controls/textfield/textfield_model.cc
|
| +++ b/ui/views/controls/textfield/textfield_model.cc
|
| @@ -336,9 +336,8 @@ void TextfieldModel::Append(const base::string16& new_text) {
|
| if (HasCompositionText())
|
| ConfirmCompositionText();
|
| size_t save = GetCursorPosition();
|
| - MoveCursor(gfx::LINE_BREAK,
|
| - render_text_->GetVisualDirectionOfLogicalEnd(),
|
| - false);
|
| + MoveCursor(gfx::LINE_BREAK, render_text_->GetVisualDirectionOfLogicalEnd(),
|
| + gfx::SELECTION_NONE);
|
| InsertText(new_text);
|
| render_text_->SetCursorPosition(save);
|
| ClearSelection();
|
| @@ -401,10 +400,10 @@ size_t TextfieldModel::GetCursorPosition() const {
|
|
|
| void TextfieldModel::MoveCursor(gfx::BreakType break_type,
|
| gfx::VisualCursorDirection direction,
|
| - bool select) {
|
| + gfx::SelectionBehavior selection_behavior) {
|
| if (HasCompositionText())
|
| ConfirmCompositionText();
|
| - render_text_->MoveCursor(break_type, direction, select);
|
| + render_text_->MoveCursor(break_type, direction, selection_behavior);
|
| }
|
|
|
| bool TextfieldModel::MoveCursorTo(const gfx::SelectionModel& cursor) {
|
|
|