| 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..e7392011d90593710a690d6540c4a716de98d587 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);
|
|
|
| @@ -484,7 +479,6 @@ void PrintWebViewHelper::PrintHeaderAndFooter(
|
| options->SetDouble("bottomMargin", page_layout.margin_bottom);
|
| options->SetString("pageNumber",
|
| base::StringPrintf("%d/%d", page_number, total_pages));
|
| -
|
| // Fallback to initiator URL and title if it's empty for printed frame.
|
| base::string16 url = source_frame.document().url().string();
|
| options->SetString("url", url.empty() ? params.url : url);
|
| @@ -502,8 +496,6 @@ void PrintWebViewHelper::PrintHeaderAndFooter(
|
|
|
| web_view->close();
|
| frame->close();
|
| -
|
| - device->setDrawingArea(SkPDFDevice::kContent_DrawingArea);
|
| }
|
|
|
| // static - Not anonymous so that platform implementations can use it.
|
|
|