Use blink::WebLocalFrame instead of blink::WebFrame in printing

This commit is contained in:
Aleksei Kuzmin 2017-08-24 02:31:03 +03:00 committed by Cheng Zhao
parent d817e23050
commit 59b2fb054e

View file

@ -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<blink::WebPluginDocument>().Plugin() : NULL;
frame->GetDocument().To<blink::WebPluginDocument>().Plugin() : nullptr;
}
bool PrintingNodeOrPdfFrame(const blink::WebFrame* frame,
bool PrintingNodeOrPdfFrame(const blink::WebLocalFrame* frame,
const blink::WebNode& node) {
if (!node.IsNull())
return true;