summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/renderer_host/render_widget_host.cc10
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())