| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| index 950ea3bb211e9737ad1c3ba9ffe95b321919c65b..4d3f5711c72b15a5455dd538d036336d8a9f7f47 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| @@ -103,6 +103,17 @@ public class ContentViewRenderView extends FrameLayout {
|
| mContentReadbackHandler.initNativeContentReadbackHandler();
|
| }
|
|
|
| + @Override
|
| + protected void onSizeChanged(int wPix, int hPix, int owPix, int ohPix) {
|
| + // If mContentViewCore was initialized too early, physical backing size is empty.
|
| + // In this case, we should resize it before viewport size is set.
|
| + if (mContentViewCore != null && mContentViewCore.getPhysicalBackingWidthPix() == 0
|
| + && mContentViewCore.getPhysicalBackingHeightPix() == 0) {
|
| + mContentViewCore.onPhysicalBackingSizeChanged(wPix, hPix);
|
| + }
|
| + super.onSizeChanged(wPix, hPix, owPix, ohPix);
|
| + }
|
| +
|
| /**
|
| * @return The content readback handler.
|
| */
|
|
|