mirror of
https://github.com/electron/electron.git
synced 2026-02-06 13:15:05 -05:00
Use "blink::WebLocalFrame" for "GetMarginsForPdf()"
Fixes "error: no member named 'IsPrintScalingDisabledForPlugin' in 'blink::WebFrame'"
This commit is contained in:
committed by
Cheng Zhao
parent
f0cda8d88c
commit
5a4a1a5574
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user