summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-11-29 14:18:27 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-29 14:18:27 -0800
commitd3788b97c9a28e8cbfa4432389a5de04073a333b (patch)
tree10a69ef66319307ef46b6cedf6c047ba0db73eab
parenta9a91ad356271c4c4d663223ff42694fbeb1d2a0 (diff)
parent7ae9f3ab5517a3d58cc1f462d4a920cbe42a4213 (diff)
downloadframeworks_base-d3788b97c9a28e8cbfa4432389a5de04073a333b.zip
frameworks_base-d3788b97c9a28e8cbfa4432389a5de04073a333b.tar.gz
frameworks_base-d3788b97c9a28e8cbfa4432389a5de04073a333b.tar.bz2
Merge "WebView animation support" into ics-mr1
-rw-r--r--core/java/android/webkit/ZoomManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/webkit/ZoomManager.java b/core/java/android/webkit/ZoomManager.java
index cf2c8a6..8c57265 100644
--- a/core/java/android/webkit/ZoomManager.java
+++ b/core/java/android/webkit/ZoomManager.java
@@ -493,6 +493,9 @@ class ZoomManager {
if (mHardwareAccelerated) {
mWebView.updateScrollCoordinates(mWebView.getScrollX() - tx, mWebView.getScrollY() - ty);
+ // By adding webView matrix, we need to offset the canvas a bit
+ // to make the animation smooth.
+ canvas.translate(tx, ty);
setZoomScale(zoomScale, false);
if (mZoomScale == 0) {