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
This commit is contained in:
Derek Sollenberger
2011-11-28 09:31:49 -05:00
parent e35581ad5a
commit 8fae09d575

View File

@@ -498,6 +498,11 @@ class ZoomManager {
if (mZoomScale == 0) {
// We've reached the end of the zoom animation.
mInHWAcceleratedZoom = false;
// Ensure that the zoom level is pushed to WebCore. This has not
// yet occurred because we prevent it from happening while
// mInHWAcceleratedZoom is true.
mWebView.sendViewSizeZoom(false);
}
} else {
canvas.translate(tx, ty);