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

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

Issue 14670013: aura: Don't lock resizes for auto-resize RWH (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | 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_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 17c11a1926539934c8e1c47b6b28034627ffd577..feac68d016c62099150e18aaefe9c2eb36deb5e6 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -776,7 +776,8 @@ void RenderWidgetHostViewAura::SetBounds(const gfx::Rect& rect) {
void RenderWidgetHostViewAura::MaybeCreateResizeLock() {
gfx::Size desired_size = window_->bounds().size();
- if (!resize_lock_.get() &&
+ if (!host_->should_auto_resize() &&
+ !resize_lock_.get() &&
desired_size != current_frame_size_ &&
host_->is_accelerated_compositing_active()) {
aura::RootWindow* root_window = window_->GetRootWindow();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698