From 59b2fb054eb8d3434047856c2fe44c05d51b0095 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Thu, 24 Aug 2017 02:31:03 +0300 Subject: [PATCH] Use blink::WebLocalFrame instead of blink::WebFrame in printing --- .../chrome/renderer/printing/print_web_view_helper.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chromium_src/chrome/renderer/printing/print_web_view_helper.cc b/chromium_src/chrome/renderer/printing/print_web_view_helper.cc index 9ffb822c6cef..bbdca2d18a0e 100644 --- a/chromium_src/chrome/renderer/printing/print_web_view_helper.cc +++ b/chromium_src/chrome/renderer/printing/print_web_view_helper.cc @@ -236,12 +236,12 @@ void ComputeWebKitPrintParamsInDesiredDpi( ConvertUnit(print_params.page_size.height(), dpi, kPointsPerInch); } -blink::WebPlugin* GetPlugin(const blink::WebFrame* frame) { +blink::WebPlugin* GetPlugin(const blink::WebLocalFrame* frame) { return frame->GetDocument().IsPluginDocument() ? - frame->GetDocument().To().Plugin() : NULL; + frame->GetDocument().To().Plugin() : nullptr; } -bool PrintingNodeOrPdfFrame(const blink::WebFrame* frame, +bool PrintingNodeOrPdfFrame(const blink::WebLocalFrame* frame, const blink::WebNode& node) { if (!node.IsNull()) return true;