Use blink::WebLocalFrame instead of blink::WebFrame in printing
This commit is contained in:
parent
d817e23050
commit
59b2fb054e
1 changed files with 3 additions and 3 deletions
|
@ -236,12 +236,12 @@ void ComputeWebKitPrintParamsInDesiredDpi(
|
||||||
ConvertUnit(print_params.page_size.height(), dpi, kPointsPerInch);
|
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() ?
|
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) {
|
const blink::WebNode& node) {
|
||||||
if (!node.IsNull())
|
if (!node.IsNull())
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue