Cherry-pick: Restrict the assumption that the OSK will trigger a resize

Cherry-pick of chromium crrev.com/23876030

BUG: 10733414

Original description:

ContentViewCore defers focusing an editable node until the OSK has triggered a
resize. However, this may not always occur, e.g., with scrollable WebView
containers. Restrict the assumption of an OSK-triggered resize by filtering
out resizes that do not preserve width, e.g., with rotation.

Change-Id: I21f7bda94e19f5908cee3a0182e906060c5899c2
1 file changed