Skip to content

Commit 76cf781

Browse files
George MountAndroid (Google) Code Review
authored andcommitted
Merge "DO NOT MERGE Consider fixed layers when scrolling the edit box." into jb-dev
2 parents ec2bf4c + b999b22 commit 76cf781

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5504,6 +5504,7 @@ private void scrollEditIntoView() {
55045504
if (visibleRect.contains(mEditTextContentBounds)) {
55055505
return; // no need to scroll
55065506
}
5507+
nativeFindMaxVisibleRect(mNativeClass, mEditTextLayerId, visibleRect);
55075508
syncSelectionCursors();
55085509
final int buffer = Math.max(1, viewToContentDimension(EDIT_RECT_BUFFER));
55095510
Rect showRect = new Rect(
@@ -8537,4 +8538,6 @@ private static native void nativeMapLayerRect(int instance, int layerId,
85378538
Rect rect);
85388539
// Returns 1 if a layer sync is needed, else 0
85398540
private static native int nativeSetHwAccelerated(int instance, boolean hwAccelerated);
8541+
private static native void nativeFindMaxVisibleRect(int instance, int layerId,
8542+
Rect visibleContentRect);
85408543
}

0 commit comments

Comments
 (0)