Fix bug: use content height instead of view height.

issue: 3396895
Change-Id: I3012fa2c48d3e215d5b877ac525fdba89c0f9251
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 26dab81..88bb9fc 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -2617,8 +2617,8 @@
             newHeight = 0;
             heightWidthRatio = 0;
         }
-        // Actual visible height.
-        int actualViewHeight = getViewHeight();
+        // Actual visible content height.
+        int actualViewHeight = Math.round(getViewHeight() * mZoomManager.getInvScale());
         // Avoid sending another message if the dimensions have not changed.
         if (newWidth != mLastWidthSent || newHeight != mLastHeightSent || force ||
                 actualViewHeight != mLastActualHeightSent) {