| Index: ui/keyboard/keyboard_controller_proxy.cc
|
| diff --git a/ui/keyboard/keyboard_controller_proxy.cc b/ui/keyboard/keyboard_controller_proxy.cc
|
| index bf921efd76440b766a4f2c7339cfa2be645a31ee..83d5e77448a2b351f16afeb76eeebb104f336a1c 100644
|
| --- a/ui/keyboard/keyboard_controller_proxy.cc
|
| +++ b/ui/keyboard/keyboard_controller_proxy.cc
|
| @@ -55,15 +55,10 @@ class KeyboardContentsDelegate : public content::WebContentsDelegate,
|
| // point. Otherwise, wrong keyboard bounds is used and may cause problem as
|
| // described in crbug.com/367788.
|
| DCHECK(keyboard->parent());
|
| - gfx::Rect bounds = keyboard->bounds();
|
| - int new_height = pos.height();
|
| - bounds.set_y(bounds.y() + bounds.height() - new_height);
|
| - bounds.set_height(new_height);
|
| - // Keyboard bounds should only be reset when it actually changes. Otherwise
|
| - // it interrupts the initial animation of showing the keyboard. Described in
|
| - // crbug.com/356753.
|
| - if (bounds != keyboard->bounds())
|
| - keyboard->SetBounds(bounds);
|
| + // keyboard window bounds may not set to |pos| after this call. If keyboard
|
| + // is in FULL_WIDTH mode, only the height of keyboard window will be
|
| + // changed.
|
| + keyboard->SetBounds(pos);
|
| }
|
|
|
| // Overridden from content::WebContentsDelegate:
|
|
|