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

Unified Diff: ui/android/delegated_frame_host_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 | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/delegated_frame_host_android.cc
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc
index 016fcb864a2d3e95f84629dca8d97a789d62f32a..99c279d0091a135a43d15d40bd53d696ebb944e1 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -241,12 +241,6 @@ void DelegatedFrameHostAndroid::UpdateBackgroundLayer() {
float device_scale_factor = gfx::DeviceDisplayInfo().GetDIPScale();
gfx::Size content_size_in_dip = gfx::ConvertSizeToDIP(
device_scale_factor, current_frame_->surface_size);
- float top_bar_shown = current_frame_->top_controls_height *
- current_frame_->top_controls_shown_ratio;
- float bottom_bar_shown = current_frame_->bottom_controls_height *
- current_frame_->bottom_controls_shown_ratio;
- content_size_in_dip.set_height(
- content_size_in_dip.height() - top_bar_shown - bottom_bar_shown);
background_is_drawable =
content_size_in_dip.width() < container_size_in_dip_.width() ||
content_size_in_dip.height() < container_size_in_dip_.height();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698