RESOLVED FIXED Bug 131325
[iOS WebKit2] WKPDFView fades in tiles, PDFs load very flashily
https://bugs.webkit.org/show_bug.cgi?id=131325
Summary [iOS WebKit2] WKPDFView fades in tiles, PDFs load very flashily
Tim Horton
Reported 2014-04-07 16:11:12 PDT
We should add and remove views as we scroll, and use a backing layer to avoid flashiness. <rdar://problem/16382960>
Attachments
patch (8.83 KB, patch)
2014-04-07 16:32 PDT, Tim Horton
andersca: review+
Tim Horton
Comment 1 2014-04-07 16:32:09 PDT
Anders Carlsson
Comment 2 2014-04-07 16:39:01 PDT
Comment on attachment 228769 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=228769&action=review > Source/WebKit2/UIProcess/Cocoa/WKWebViewContentProvider.h:38 > // FIXME: This should be API. I think you should extend this FIXME to say that we should come up with a solution for the UIScrollViewDelegate “problem”. > Source/WebKit2/UIProcess/ios/WKPDFView.mm:134 > + if (CGRectIntersectsRect(pageInfo.frame, targetRect)) { Please change this to if (!CGRectIntersectsRect(pageInfo.frame, targetRect)) { [pageInfo.view removeFromSuperview]; pageInfo.view = nullptr; continue; }
Anders Carlsson
Comment 3 2014-04-07 16:39:33 PDT
Comment on attachment 228769 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=228769&action=review > Source/WebKit2/UIProcess/ios/WKPDFView.mm:171 > + pageInfo.view = nullptr; No need to initialize view here since it's a RetainPtr.
Tim Horton
Comment 4 2014-04-07 17:08:24 PDT
Note You need to log in before you can comment on or make changes to this bug.