diff options
author | Cary Clark <cary@android.com> | 2010-02-25 14:49:26 -0500 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-02-25 15:08:07 -0500 |
commit | 018ff891a04b5849a1cfb15e5272330ee3f1810a (patch) | |
tree | ab2f6ca8ef09545ca47c0698d64f0af7d771abd9 /core | |
parent | 70e1a184dfc3dc50597de263aa061adb9eafc199 (diff) | |
download | frameworks_base-018ff891a04b5849a1cfb15e5272330ee3f1810a.zip frameworks_base-018ff891a04b5849a1cfb15e5272330ee3f1810a.tar.gz frameworks_base-018ff891a04b5849a1cfb15e5272330ee3f1810a.tar.bz2 |
don't draw layers with history
The history picture and the layers drawn may be out of sync,
so for now, don't draw the layers when the history picture is
drawn.
Also, remove native class check from drawExtras() since it
is already checked by the caller.
fixes http://b/2457350
fixes http://b/2453780
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/webkit/WebView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index b13fc75..d29d6f3 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -3136,7 +3136,8 @@ public class WebView extends AbsoluteLayout } private void drawExtras(Canvas canvas, int extras) { - if (mNativeClass == 0) return; + // If mNativeClass is 0, we should not reach here, so we do not + // need to check it again. // Currently for each draw we compute the animation values; // We may in the future decide to do that independently. if (nativeEvaluateLayersAnimations()) { @@ -3153,7 +3154,6 @@ public class WebView extends AbsoluteLayout if (mDrawHistory) { canvas.scale(mActualScale, mActualScale); canvas.drawPicture(mHistoryPicture); - drawExtras(canvas, DRAW_EXTRAS_NONE); return; } |