diff options
author | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-28 19:37:51 +0000 |
---|---|---|
committer | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-28 19:37:51 +0000 |
commit | 7c34d000dcd44dcf76f43aaa97c684f37c43b526 (patch) | |
tree | 3938b7c9dccca95272b3fb791ed005ceb73ff79d /content/browser | |
parent | 529d4b5e6a4769eec4ebde8c48231fae3ab3c8aa (diff) | |
download | chromium_src-7c34d000dcd44dcf76f43aaa97c684f37c43b526.zip chromium_src-7c34d000dcd44dcf76f43aaa97c684f37c43b526.tar.gz chromium_src-7c34d000dcd44dcf76f43aaa97c684f37c43b526.tar.bz2 |
Call SendScreenRects() when the content has been resized.
RenderWidgetHostView::WasResized() will only update the RenderWidget's
size and propagate the update to its WebWidget. However, window.outer*
will use window_screen_rect_, updated when receiving an
UpdateScreenRects message. We need to make sure that value is updated
before notifying about a resize.
BUG=359975
Review URL: https://codereview.chromium.org/247933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r-- | content/browser/android/content_view_core_impl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc index e2f9364..a291f97 100644 --- a/content/browser/android/content_view_core_impl.cc +++ b/content/browser/android/content_view_core_impl.cc @@ -1376,8 +1376,12 @@ jboolean ContentViewCoreImpl::OnAnimate(JNIEnv* env, jobject /* obj */, void ContentViewCoreImpl::WasResized(JNIEnv* env, jobject obj) { RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid(); - if (view) + if (view) { + RenderWidgetHostImpl* host = RenderWidgetHostImpl::From( + view->GetRenderWidgetHost()); + host->SendScreenRects(); view->WasResized(); + } } void ContentViewCoreImpl::ShowInterstitialPage( |