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

Commit 6aab672a authored by Grace Kloba's avatar Grace Kloba Committed by Android Git Automerger
Browse files

am 04b2868c: WebView zoom clean up

Merge commit '04b2868c' into eclair-plus-aosp

* commit '04b2868c':
  WebView zoom clean up
parents 6cd80d73 04b2868c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -222,7 +222,6 @@ class BrowserFrame extends Handler {

    private void resetLoadingStates() {
        mCommitted = true;
        mWebViewCore.mEndScaleZoom = mFirstLayoutDone == false;
        mFirstLayoutDone = true;
    }

@@ -245,7 +244,6 @@ class BrowserFrame extends Handler {
            // blocking the update in {@link #loadStarted}
            mWebViewCore.contentDraw();
        }
        mWebViewCore.mEndScaleZoom = true;
    }

    /**
+36 −535

File changed.

Preview size limit exceeded, changes collapsed.

+2 −6
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ import android.view.SurfaceView;

import java.util.ArrayList;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import junit.framework.Assert;
@@ -1528,9 +1527,6 @@ final class WebViewCore {
    // Used to suspend drawing.
    private boolean mDrawIsPaused;

    // Used to end scale+scroll mode, accessed by both threads
    boolean mEndScaleZoom = false;

    // mRestoreState is set in didFirstLayout(), and reset in the next
    // webkitDraw after passing it to the UI thread.
    private RestoreState mRestoreState = null;
@@ -1571,7 +1567,7 @@ final class WebViewCore {
            // Send the native view size that was used during the most recent
            // layout.
            draw.mViewPoint = new Point(mCurrentViewWidth, mCurrentViewHeight);
            if (WebView.ENABLE_DOUBLETAP_ZOOM && mSettings.getUseWideViewPort()) {
            if (mSettings.getUseWideViewPort()) {
                draw.mMinPrefWidth = Math.max(
                        mViewportWidth == -1 ? DEFAULT_VIEWPORT_WIDTH
                                : (mViewportWidth == 0 ? mCurrentViewWidth
@@ -1977,7 +1973,7 @@ final class WebViewCore {

    // called by JNI
    private void restoreScreenWidthScale(int scale) {
        if (!WebView.ENABLE_DOUBLETAP_ZOOM || !mSettings.getUseWideViewPort()) {
        if (!mSettings.getUseWideViewPort()) {
            return;
        }