Use "blink::WebLocalFrame" for "GetMarginsForPdf()"

Fixes "error: no member named 'IsPrintScalingDisabledForPlugin' in 'blink::WebFrame'"
This commit is contained in:
Aleksei Kuzmin 2017-08-22 02:27:05 +03:00 committed by Cheng Zhao
parent f0cda8d88c
commit 5a4a1a5574

View file

@ -249,7 +249,7 @@ bool PrintingNodeOrPdfFrame(const blink::WebFrame* frame,
return plugin && plugin->SupportsPaginatedPrint();
}
MarginType GetMarginsForPdf(blink::WebFrame* frame,
MarginType GetMarginsForPdf(blink::WebLocalFrame* frame,
const blink::WebNode& node) {
if (frame->IsPrintScalingDisabledForPlugin(node))
return NO_MARGINS;