[iOS] _WKWebViewPrintFormatter should return a page count of 0 for PDF documents...
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 May 2018 00:31:04 +0000 (00:31 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 May 2018 00:31:04 +0000 (00:31 +0000)
commit1010cbf975553aa55ffedcce9b39db6ba21f57f7
tree8b0e75ff328cadeb3d6023d75dcd6b58739dc70b
parent50c93d8e0b5c904f3527558b75dd300e03fcf985
[iOS] _WKWebViewPrintFormatter should return a page count of 0 for PDF documents that do not allow printing
https://bugs.webkit.org/show_bug.cgi?id=185133

Reviewed by Andreas Kling.

* UIProcess/ios/WKPDFView.mm:
(-[WKPDFView _ensureDocumentForPrinting]):
(-[WKPDFView _wk_pageCountForPrintFormatter:]):
(-[WKPDFView _wk_printedDocument]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKPDFView.mm