| Summary: | Fix the "deliver cached ranges" logic in PDFPlugin (and other small cleanups) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brady Eidson <beidson> | ||||||||||
| Component: | WebKit Misc. | Assignee: | Brady Eidson <beidson> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | commit-queue, timothy | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Brady Eidson
2020-03-13 17:05:05 PDT
Created attachment 393561 [details]
Patch
Comment on attachment 393561 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393561&action=review > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:1441 > + if ([m_pdfDocument.get() respondsToSelector:NSSelectorFromString(@"setHasHighLatencyDataProvider:")]) > + [m_pdfDocument.get() setHasHighLatencyDataProvider:NO]; You might need to forward declare this to call it like this. Otherwise you will need to do an objc_msgSend or performSelector:. If you forward declare, you can just do @selector(setHasHighLatencyDataProvider:) instead of NSSelectorFromString. Needs rebased. (In reply to Timothy Hatcher from comment #3) > Comment on attachment 393561 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=393561&action=review > > > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:1441 > > + if ([m_pdfDocument.get() respondsToSelector:NSSelectorFromString(@"setHasHighLatencyDataProvider:")]) > > + [m_pdfDocument.get() setHasHighLatencyDataProvider:NO]; > > You might need to forward declare this to call it like this. Otherwise you > will need to do an objc_msgSend or performSelector:. If you forward declare, > you can just do @selector(setHasHighLatencyDataProvider:) instead of > NSSelectorFromString. Good call. Oh I know why everything is red - Locally, it's built on top of the patch in https://bugs.webkit.org/show_bug.cgi?id=209063 Will figure something out. Created attachment 393599 [details]
PFL
Created attachment 393600 [details]
PFL
Created attachment 393602 [details]
PFL
Comment on attachment 393602 [details] PFL Clearing flags on attachment: 393602 Committed r258477: <https://trac.webkit.org/changeset/258477> All reviewed patches have been landed. Closing bug. |