am 758b5b25: Merge change I35155c1d into eclair-mr2
Merge commit '758b5b25f04e4f75e7c6c7a419bf333e4ee49718' into eclair-mr2-plus-aosp * commit '758b5b25f04e4f75e7c6c7a419bf333e4ee49718': divide mRestoredScale before use
This commit is contained in:
@@ -2042,9 +2042,16 @@ final class WebViewCore {
|
||||
// know the exact scale. If mRestoredScale is non-zero, use it;
|
||||
// otherwise just use mTextWrapScale as the initial scale.
|
||||
data.mScale = mRestoreState.mViewScale == 0
|
||||
? (mRestoredScale > 0 ? mRestoredScale
|
||||
? (mRestoredScale > 0 ? mRestoredScale / 100.0f
|
||||
: mRestoreState.mTextWrapScale)
|
||||
: mRestoreState.mViewScale;
|
||||
if (DebugFlags.WEB_VIEW_CORE) {
|
||||
Log.v(LOGTAG, "setupViewport"
|
||||
+ " mRestoredScale=" + mRestoredScale
|
||||
+ " mViewScale=" + mRestoreState.mViewScale
|
||||
+ " mTextWrapScale=" + mRestoreState.mTextWrapScale
|
||||
);
|
||||
}
|
||||
data.mWidth = Math.round(webViewWidth / data.mScale);
|
||||
data.mHeight = mCurrentViewHeight * data.mWidth / viewportWidth;
|
||||
data.mTextWrapWidth = Math.round(webViewWidth
|
||||
|
||||
Reference in New Issue
Block a user