am 15760159: Merge change 5413 into donut

Merge commit '157601594fc7139a45ec43a860d36ee0045d0333'

* commit '157601594fc7139a45ec43a860d36ee0045d0333':
  Need to write the correct float math.
This commit is contained in:
Android (Google) Code Review
2009-06-25 14:45:45 -07:00
committed by The Android Open Source Project

View File

@@ -1620,7 +1620,7 @@ final class WebViewCore {
// adjust the default scale to match the density
if (WebView.DEFAULT_SCALE_PERCENT != 100) {
float adjust = WebView.DEFAULT_SCALE_PERCENT / 100;
float adjust = (float) WebView.DEFAULT_SCALE_PERCENT / 100.0f;
if (mViewportInitialScale > 0) {
mViewportInitialScale *= adjust;
}