Index: components/printing/renderer/print_web_view_helper.cc |
diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc |
index e59e372e93370134b161e24cf4001b4be673ce9f..eaa294d97cf0375669c12b0e08526f95280fc0a2 100644 |
--- a/components/printing/renderer/print_web_view_helper.cc |
+++ b/components/printing/renderer/print_web_view_helper.cc |
@@ -573,7 +573,7 @@ void PrintWebViewHelper::PrintHeaderAndFooter( |
float webkit_scale_factor, |
const PageSizeMargins& page_layout, |
const PrintMsg_Print_Params& params) { |
- SkAutoCanvasRestore auto_restore(canvas, true); |
+ cc::PaintCanvasAutoRestore auto_restore(canvas, true); |
canvas->scale(1 / webkit_scale_factor, 1 / webkit_scale_factor); |
blink::WebSize page_size(page_layout.margin_left + page_layout.margin_right + |
@@ -630,7 +630,7 @@ float PrintWebViewHelper::RenderPageContent(blink::WebFrame* frame, |
const gfx::Rect& content_area, |
double scale_factor, |
blink::WebCanvas* canvas) { |
- SkAutoCanvasRestore auto_restore(canvas, true); |
+ cc::PaintCanvasAutoRestore auto_restore(canvas, true); |
canvas->translate((content_area.x() - canvas_area.x()) / scale_factor, |
(content_area.y() - canvas_area.y()) / scale_factor); |
return frame->printPage(page_number, canvas); |