| Index: chrome/renderer/printing/print_web_view_helper.cc
|
| diff --git a/chrome/renderer/printing/print_web_view_helper.cc b/chrome/renderer/printing/print_web_view_helper.cc
|
| index 05247b11d5c6cc17af3fd5b5bce02bed76bd11d1..39b32171e1e054e5309366ebbad26dfb57e5f6b0 100644
|
| --- a/chrome/renderer/printing/print_web_view_helper.cc
|
| +++ b/chrome/renderer/printing/print_web_view_helper.cc
|
| @@ -28,7 +28,6 @@
|
| #include "net/base/escape.h"
|
| #include "printing/pdf_metafile_skia.h"
|
| #include "printing/units.h"
|
| -#include "skia/ext/vector_platform_device_skia.h"
|
| #include "third_party/WebKit/public/platform/WebSize.h"
|
| #include "third_party/WebKit/public/platform/WebURLRequest.h"
|
| #include "third_party/WebKit/public/web/WebConsoleMessage.h"
|
| @@ -452,10 +451,6 @@ void PrintWebViewHelper::PrintHeaderAndFooter(
|
| float webkit_scale_factor,
|
| const PageSizeMargins& page_layout,
|
| const PrintMsg_Print_Params& params) {
|
| - skia::VectorPlatformDeviceSkia* device =
|
| - static_cast<skia::VectorPlatformDeviceSkia*>(canvas->getTopDevice());
|
| - device->setDrawingArea(SkPDFDevice::kMargin_DrawingArea);
|
| -
|
| SkAutoCanvasRestore auto_restore(canvas, true);
|
| canvas->scale(1 / webkit_scale_factor, 1 / webkit_scale_factor);
|
|
|
| @@ -502,8 +497,6 @@ void PrintWebViewHelper::PrintHeaderAndFooter(
|
|
|
| web_view->close();
|
| frame->close();
|
| -
|
| - device->setDrawingArea(SkPDFDevice::kContent_DrawingArea);
|
| }
|
|
|
| // static - Not anonymous so that platform implementations can use it.
|
|
|