| Index: ui/base/ime/input_method_chromeos.cc
|
| diff --git a/ui/base/ime/input_method_chromeos.cc b/ui/base/ime/input_method_chromeos.cc
|
| index 924c9cf968321b28c022dbe6553290bc3929d75f..4de4db2dfbc0c272a34c8030e152a5ef7cd20635 100644
|
| --- a/ui/base/ime/input_method_chromeos.cc
|
| +++ b/ui/base/ime/input_method_chromeos.cc
|
| @@ -180,12 +180,13 @@ void InputMethodChromeOS::OnCaretBoundsChanged(const TextInputClient* client) {
|
|
|
| const gfx::Rect caret_rect = client->GetCaretBounds();
|
|
|
| - // Pepper doesn't support composition bounds, so fall back to caret bounds to
|
| - // avoid a bad user experience (the IME window moved to upper left corner).
|
| gfx::Rect composition_head;
|
| if (client->HasCompositionText())
|
| client->GetCompositionCharacterBounds(0, &composition_head);
|
| - else
|
| +
|
| + // Pepper doesn't support composition bounds, so fall back to caret bounds to
|
| + // avoid a bad user experience (the IME window moved to upper left corner).
|
| + if (composition_head.IsEmpty())
|
| composition_head = caret_rect;
|
| candidate_window->SetCursorBounds(caret_rect, composition_head);
|
|
|
|
|