From a436c2c21d0e3ba16c43e7a09ad792a83fa0be17 Mon Sep 17 00:00:00 2001 From: Electron Bot Date: Tue, 25 Aug 2020 15:42:39 +0000 Subject: [PATCH] update patches --- docs/api/webview-tag.md | 2 +- patches/chromium/fix_properly_honor_printing_page_ranges.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index b202a9bc2b65a..b116b033efe6b 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -587,7 +587,7 @@ Prints `webview`'s web page. Same as `webContents.print([options])`. default margin, 1 for no margin, and 2 for minimum margin. and `width` in microns. * `scaleFactor` Number (optional) - The scale factor of the web page. Can range from 0 to 100. - * `pageRanges` Object[] (optional) - The page range to print. On macOS, only the first range is honored. + * `pageRanges` Record (optional) - The page range to print. On macOS, only the first range is honored. * `from` Number - Index of the first page to print (0-based). * `to` Number - Index of the last page to print (inclusive) (0-based). * `pageSize` String | Size (optional) - Specify page size of the generated PDF. Can be `A3`, diff --git a/patches/chromium/fix_properly_honor_printing_page_ranges.patch b/patches/chromium/fix_properly_honor_printing_page_ranges.patch index 453b49bc199d9..ea568f00252f5 100644 --- a/patches/chromium/fix_properly_honor_printing_page_ranges.patch +++ b/patches/chromium/fix_properly_honor_printing_page_ranges.patch @@ -97,7 +97,7 @@ index d3c8677f30d72efc49b28f293260c74c7b8d8b4e..bacc24388e0159a83c4ed5e03b104e11 } else { // No need to bother, we don't know how many pages are available. diff --git a/ui/gtk/printing/print_dialog_gtk.cc b/ui/gtk/printing/print_dialog_gtk.cc -index 8a78a609295a1d90208bdc7e73d7a850c319f361..8efbbfb31eac99323be5e81826d5738b2390a82d 100644 +index 8a78a609295a1d90208bdc7e73d7a850c319f361..2f5bc01bedf84126d8fb1597a0b813a2b7230279 100644 --- a/ui/gtk/printing/print_dialog_gtk.cc +++ b/ui/gtk/printing/print_dialog_gtk.cc @@ -239,6 +239,23 @@ void PrintDialogGtk::UpdateSettings(