Index: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
index ca98511f3688a325ce42876534608273994dc361..51f4ebd52a7e9ab560148fb57c48cdd513c41a27 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
@@ -2294,7 +2294,8 @@ public class Tab |
// (see http://crbug.com/340987). |
newContentViewCore.onSizeChanged(originalWidth, originalHeight, 0, 0); |
if (!bounds.isEmpty()) { |
- newContentViewCore.onPhysicalBackingSizeChanged(bounds.right, bounds.bottom); |
+ nativeOnPhysicalBackingSizeChanged(mNativeTabAndroid, |
+ newContentViewCore.getWebContents(), bounds.right, bounds.bottom); |
} |
newContentViewCore.onShow(); |
setContentViewCore(newContentViewCore); |
@@ -3056,6 +3057,8 @@ public class Tab |
private native void nativeUpdateDelegates(long nativeTabAndroid, |
TabWebContentsDelegateAndroid delegate, ContextMenuPopulator contextMenuPopulator); |
private native void nativeDestroyWebContents(long nativeTabAndroid, boolean deleteNative); |
+ private native void nativeOnPhysicalBackingSizeChanged( |
+ long nativeTabAndroid, WebContents webContents, int width, int height); |
private native Profile nativeGetProfileAndroid(long nativeTabAndroid); |
private native int nativeLoadUrl(long nativeTabAndroid, String url, String extraHeaders, |
ResourceRequestBody postData, int transition, String referrerUrl, int referrerPolicy, |