| Index: webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
|
| diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
|
| index ff23bcbb3a67ca349e8e9188a3d13a08e8ee659d..eafd73ae7b15b07824b739cde1db4f7975032fee 100644
|
| --- a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
|
| +++ b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
|
| @@ -455,16 +455,16 @@ void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context,
|
| base::StatsRate plugin_paint("Plugin.Paint");
|
| base::StatsScope<base::StatsRate> scope(plugin_paint);
|
|
|
| - gfx::Rect paint_rect;
|
| + gfx::Rect paint_rect = damage_rect;
|
| if (use_buffer_context_) {
|
| // Plugin invalidates trigger asynchronous paints with the original
|
| // invalidation rect; the plugin may be resized before the paint is handled,
|
| // so we need to ensure that the damage rect is still sane.
|
| - paint_rect = damage_rect.Intersect(
|
| + paint_rect.Intersect(
|
| gfx::Rect(0, 0, window_rect_.width(), window_rect_.height()));
|
| } else {
|
| // Use the actual window region when drawing directly to the window context.
|
| - paint_rect = damage_rect.Intersect(window_rect_);
|
| + paint_rect.Intersect(window_rect_);
|
| }
|
|
|
| ScopedActiveDelegate active_delegate(this);
|
|
|