| Index: chrome/browser/ui/gtk/download/download_item_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/ui/gtk/download/download_item_gtk.cc (revision 82144)
|
| +++ chrome/browser/ui/gtk/download/download_item_gtk.cc (working copy)
|
| @@ -859,21 +859,22 @@
|
| gboolean DownloadItemGtk::OnProgressAreaExpose(GtkWidget* widget,
|
| GdkEventExpose* event) {
|
| // Create a transparent canvas.
|
| - gfx::CanvasSkiaPaint canvas(event, false);
|
| + gfx::CanvasSkiaPaint canvas_paint(event, false);
|
| + gfx::Canvas* canvas = canvas_paint.AsCanvas();
|
| if (complete_animation_.is_animating()) {
|
| if (get_download()->IsInterrupted()) {
|
| - download_util::PaintDownloadInterrupted(&canvas,
|
| + download_util::PaintDownloadInterrupted(canvas,
|
| widget->allocation.x, widget->allocation.y,
|
| complete_animation_.GetCurrentValue(),
|
| download_util::SMALL);
|
| } else {
|
| - download_util::PaintDownloadComplete(&canvas,
|
| + download_util::PaintDownloadComplete(canvas,
|
| widget->allocation.x, widget->allocation.y,
|
| complete_animation_.GetCurrentValue(),
|
| download_util::SMALL);
|
| }
|
| } else if (!get_download()->IsCancelled()) {
|
| - download_util::PaintDownloadProgress(&canvas,
|
| + download_util::PaintDownloadProgress(canvas,
|
| widget->allocation.x, widget->allocation.y,
|
| progress_angle_,
|
| get_download()->PercentComplete(),
|
| @@ -885,7 +886,7 @@
|
| // there is no need to use the chromium-specific default download item icon.
|
| if (icon_small_) {
|
| const int offset = download_util::kSmallProgressIconOffset;
|
| - canvas.DrawBitmapInt(*icon_small_,
|
| + canvas->DrawBitmapInt(*icon_small_,
|
| widget->allocation.x + offset, widget->allocation.y + offset);
|
| }
|
|
|
|
|