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

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

Issue 299443003: Restore resize throttling on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, test fix Created 6 years, 7 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
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index d2237e20bebe5d26de71a8017f7591df98b1840c..455ef027cbbf4ebd7b59a887c864c8410fad6bd9 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -581,8 +581,7 @@ void RenderWidgetHostImpl::WasResized() {
return;
}
- gfx::Rect view_bounds = view_->GetViewBounds();
- gfx::Size new_size(view_bounds.size());
+ gfx::Size new_size(view_->GetRequestedRendererSize());
gfx::Size old_physical_backing_size = physical_backing_size_;
physical_backing_size_ = view_->GetPhysicalBackingSize();
« no previous file with comments | « content/browser/compositor/delegated_frame_host.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698