Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(944)

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2253313002: ui: Pass the correct container size to DelegatedFrameHostAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 99330cd7b65b3e1d4efa14a6c42327114d361d54..6c47914c7db1ca1334e75ad0eda0dc395a1d8179 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -379,8 +379,9 @@ RenderWidgetHostViewAndroid::GetRenderWidgetHost() const {
}
void RenderWidgetHostViewAndroid::WasResized() {
- if (delegated_frame_host_)
- delegated_frame_host_->UpdateContainerSizeinDIP(GetVisibleViewportSize());
+ if (delegated_frame_host_ && content_view_core_)
+ delegated_frame_host_->UpdateContainerSizeinDIP(
+ content_view_core_->GetViewportSizeDip());
host_->WasResized();
}
« no previous file with comments | « no previous file | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698