summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebViewClassic.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-05-25 15:51:58 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-25 15:51:58 -0700
commit2611f1eced80db74d07563e03bb99a146aa461b6 (patch)
tree85230221a6f6592634916393b29b86711605352e /core/java/android/webkit/WebViewClassic.java
parent7d16bf4085a2e5dce68f7a08a08ad91b4480d9d7 (diff)
parent7cbe645730286eb7e5ff7339ce8c6a2ee181f2eb (diff)
am 7cbe6457: Merge "Copy over the scroll position for the scrolling layer" into jb-dev
* commit '7cbe645730286eb7e5ff7339ce8c6a2ee181f2eb': Copy over the scroll position for the scrolling layer
Diffstat (limited to 'core/java/android/webkit/WebViewClassic.java')
-rw-r--r--core/java/android/webkit/WebViewClassic.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebViewClassic.java b/core/java/android/webkit/WebViewClassic.java
index f03fb86a6b64..65fd59a9f369 100644
--- a/core/java/android/webkit/WebViewClassic.java
+++ b/core/java/android/webkit/WebViewClassic.java
@@ -4403,8 +4403,11 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
if (mNativeClass == 0)
return;
boolean queueFull;
+ final int scrollingLayer = (mTouchMode == TOUCH_DRAG_LAYER_MODE)
+ ? mCurrentScrollingLayerId : 0;
queueFull = nativeSetBaseLayer(mNativeClass, layer,
- showVisualIndicator, isPictureAfterFirstLayout);
+ showVisualIndicator, isPictureAfterFirstLayout,
+ scrollingLayer);
if (queueFull) {
mWebViewCore.pauseWebKitDraw();
@@ -8515,7 +8518,8 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
private native String nativeGetSelection();
private native void nativeSetHeightCanMeasure(boolean measure);
private native boolean nativeSetBaseLayer(int nativeInstance,
- int layer, boolean showVisualIndicator, boolean isPictureAfterFirstLayout);
+ int layer, boolean showVisualIndicator, boolean isPictureAfterFirstLayout,
+ int scrollingLayer);
private native int nativeGetBaseLayer(int nativeInstance);
private native void nativeCopyBaseContentToPicture(Picture pict);
private native boolean nativeHasContent();