| 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 03c912751664e9aa13908597fe7f7ed97014031d..80efe13ee27e8aed35688ce068242618bca9620b 100644
|
| --- a/ui/base/ime/input_method_chromeos.cc
|
| +++ b/ui/base/ime/input_method_chromeos.cc
|
| @@ -182,12 +182,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);
|
|
|
|
|