Commit 63d440eb authored by ajith.v@samsung.com's avatar ajith.v@samsung.com

When ContentView is not in focus, we don't have to call scrollFocusedEditableNodeIntoView.

Issue occurs due to speed switching of focus.

BUG=378765

Review URL: https://codereview.chromium.org/304743007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274502 0039d316-1c4b-4281-b951-d872f2087c98
parent 1c60ec33
......@@ -540,7 +540,7 @@ public class ContentViewCore
// always be called, crbug.com/294908.
getContainerView().getWindowVisibleDisplayFrame(
mFocusPreOSKViewportRect);
} else if (resultCode ==
} else if (hasFocus() && resultCode ==
InputMethodManager.RESULT_UNCHANGED_SHOWN) {
// If the OSK was already there, focus the form immediately.
scrollFocusedEditableNodeIntoView();
......@@ -1573,6 +1573,7 @@ public class ContentViewCore
public void onFocusChanged(boolean gainFocus) {
if (!gainFocus) {
hideImeIfNeeded();
cancelRequestToScrollFocusedEditableNodeIntoView();
}
if (mNativeContentViewCore != 0) nativeSetFocus(mNativeContentViewCore, gainFocus);
}
......
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