Skip to content

Commit 8fae09d

Browse files
committed
Update Webkit with the zoom level after double tap gesture
In the hardware accelerated case we were not updating webkit with the new zoom information. This was causing plugins to render at the old zoom level. bug: 5663981 Change-Id: I3cb18ad9ca4f185f384ea9fb68780f29160391ad
1 parent e35581a commit 8fae09d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/java/android/webkit/ZoomManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,11 @@ public void animateZoom(Canvas canvas) {
498498
if (mZoomScale == 0) {
499499
// We've reached the end of the zoom animation.
500500
mInHWAcceleratedZoom = false;
501+
502+
// Ensure that the zoom level is pushed to WebCore. This has not
503+
// yet occurred because we prevent it from happening while
504+
// mInHWAcceleratedZoom is true.
505+
mWebView.sendViewSizeZoom(false);
501506
}
502507
} else {
503508
canvas.translate(tx, ty);

0 commit comments

Comments
 (0)