mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
Use blink::WebLocalFrame instead of blink::WebFrame in printing
This commit is contained in:
committed by
Cheng Zhao
parent
d817e23050
commit
59b2fb054e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user