Commit bb3ce678 authored by piman@chromium.org's avatar piman@chromium.org

aura: Don't lock resizes for auto-resize RWH

BUG=237354

Review URL: https://chromiumcodereview.appspot.com/14670013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198827 0039d316-1c4b-4281-b951-d872f2087c98
parent 50785d11
......@@ -469,6 +469,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// suppress_next_char_events_.
void SuppressNextCharEvents();
// Indicates whether the renderer drives the RenderWidgetHosts's size or the
// other way around.
bool should_auto_resize() { return should_auto_resize_; }
protected:
virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
......
......@@ -783,7 +783,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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment