Commit b5a35616 authored by cjhopman@chromium.org's avatar cjhopman@chromium.org

Unselect text before rotating

When rotating, we receive events from the renderer in an unexpected
order (we get a SelectionBoundsChanged call with points in the new
window position before the CompositorFrameMessage and so we misinterpret
the SelectionBoundsChanged).

For now, we should simply unselect the text before rotating.

BUG=174665


Review URL: https://chromiumcodereview.appspot.com/12221150

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182074 0039d316-1c4b-4281-b951-d872f2087c98
parent ebe123f9
......@@ -1300,6 +1300,12 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
}
if (mNeedUpdateOrientationChanged) {
// TODO(cjhopman): Once selection bounds are received from the renderer as absolute
// positions, we will no longer need to unselect before rotation (though we may decide
// it is the correct behavior).
// http://crbug.com/174665
mImeAdapter.unselect();
sendOrientationChangeEvent();
mNeedUpdateOrientationChanged = false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment