Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fae09d5 authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

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
parent e35581ad
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);