diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 20:53:34 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 20:53:34 +0000 |
commit | e7d15770800da4b95deb591f0ff8a83e11db4b74 (patch) | |
tree | 6901b338b153411645ae7e6329446c8986578de6 /chrome/browser | |
parent | 5552216a934c3b7efb0dae4048e4bb994ddc0e7e (diff) | |
download | chromium_src-e7d15770800da4b95deb591f0ff8a83e11db4b74.zip chromium_src-e7d15770800da4b95deb591f0ff8a83e11db4b74.tar.gz chromium_src-e7d15770800da4b95deb591f0ff8a83e11db4b74.tar.bz2 |
MovePluginWindows should always be called, even if suppress_view_updating_ is true. This fixes a regression when the code got refactored.
BUG=7541
Review URL: http://codereview.chromium.org/20211
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9512 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host.cc b/chrome/browser/renderer_host/render_widget_host.cc index e196a00..7a1f599 100644 --- a/chrome/browser/renderer_host/render_widget_host.cc +++ b/chrome/browser/renderer_host/render_widget_host.cc @@ -445,11 +445,13 @@ void RenderWidgetHost::OnMsgPaintRect( return; // Now paint the view. Watch out: it might be destroyed already. - if (view_ && !suppress_view_updating_) { - view_being_painted_ = true; + if (view_) { view_->MovePluginWindows(params.plugin_window_moves); - view_->DidPaintRect(params.bitmap_rect); - view_being_painted_ = false; + if (!suppress_view_updating_) { + view_being_painted_ = true; + view_->DidPaintRect(params.bitmap_rect); + view_being_painted_ = false; + } } if (paint_observer_.get()) |