summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-01-13 16:25:14 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-13 16:25:14 -0800
commitba82e0675e2b96237941e196a8c4cf3da85864f4 (patch)
tree9af8e0f9655cb4b393cfd6fbe0505f9a439a55e7
parent438304d515387f25ea4f9658d94aadcc12b7d415 (diff)
parent4695e20aa50845ccb8470b4fcd74229503d81d49 (diff)
downloadframeworks_base-ba82e0675e2b96237941e196a8c4cf3da85864f4.zip
frameworks_base-ba82e0675e2b96237941e196a8c4cf3da85864f4.tar.gz
frameworks_base-ba82e0675e2b96237941e196a8c4cf3da85864f4.tar.bz2
Merge "fix layer scrollbar updates"
-rw-r--r--core/java/android/webkit/WebView.java2
-rw-r--r--core/java/android/webkit/WebViewCore.java7
2 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 168baad..ab4665a 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -3742,6 +3742,8 @@ public class WebView extends AbsoluteLayout
nativeScrollLayer(mCurrentScrollingLayerId, x, y);
mScrollingLayerRect.left = x;
mScrollingLayerRect.top = y;
+ mWebViewCore.sendMessage(WebViewCore.EventHub.SCROLL_LAYER, mCurrentScrollingLayerId,
+ mScrollingLayerRect);
onScrollChanged(mScrollX, mScrollY, mScrollX, mScrollY);
invalidate();
}
diff --git a/core/java/android/webkit/WebViewCore.java b/core/java/android/webkit/WebViewCore.java
index 824f556..962a8f1 100644
--- a/core/java/android/webkit/WebViewCore.java
+++ b/core/java/android/webkit/WebViewCore.java
@@ -1097,6 +1097,8 @@ public final class WebViewCore {
static final int HEARTBEAT = 197;
+ static final int SCROLL_LAYER = 198;
+
// private message ids
private static final int DESTROY = 200;
@@ -1708,6 +1710,11 @@ public final class WebViewCore {
mBrowserFrame.stringByEvaluatingJavaScriptFromString((String) msg.obj);
}
break;
+ case SCROLL_LAYER:
+ int nativeLayer = msg.arg1;
+ Rect rect = (Rect) msg.obj;
+ nativeScrollLayer(mNativeClass, nativeLayer,
+ rect);
}
}
};