Skip to content

Commit ec1b71a

Browse files
committed
Copy over the scroll position for the scrolling layer
Bug: 6557664 Change-Id: I9b1257ee0a4d75f5b445e9f72455d51e4add1c77
1 parent 04b63f6 commit ec1b71a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4403,8 +4403,11 @@ void setBaseLayer(int layer, boolean showVisualIndicator,
44034403
if (mNativeClass == 0)
44044404
return;
44054405
boolean queueFull;
4406+
final int scrollingLayer = (mTouchMode == TOUCH_DRAG_LAYER_MODE)
4407+
? mCurrentScrollingLayerId : 0;
44064408
queueFull = nativeSetBaseLayer(mNativeClass, layer,
4407-
showVisualIndicator, isPictureAfterFirstLayout);
4409+
showVisualIndicator, isPictureAfterFirstLayout,
4410+
scrollingLayer);
44084411

44094412
if (queueFull) {
44104413
mWebViewCore.pauseWebKitDraw();
@@ -8515,7 +8518,8 @@ private native void nativeUpdateDrawGLFunction(int nativeInstance, Rect invS
85158518
private native String nativeGetSelection();
85168519
private native void nativeSetHeightCanMeasure(boolean measure);
85178520
private native boolean nativeSetBaseLayer(int nativeInstance,
8518-
int layer, boolean showVisualIndicator, boolean isPictureAfterFirstLayout);
8521+
int layer, boolean showVisualIndicator, boolean isPictureAfterFirstLayout,
8522+
int scrollingLayer);
85198523
private native int nativeGetBaseLayer(int nativeInstance);
85208524
private native void nativeCopyBaseContentToPicture(Picture pict);
85218525
private native boolean nativeHasContent();

0 commit comments

Comments
 (0)