This makes performance of stepping through print preview really bad on documents with many pages, such as <http://www.whatwg.org/specs/web-apps/current-work/> <rdar://problem/8900228>
Created attachment 80862 [details] proposed patch
Comment on attachment 80862 [details] proposed patch I think this would be cleaner if we added beginPrinting() endPrinting() calls to PageClient, and do the autodisplay() calls in the mac implementation of them. What do you think?
I don't like beginPrinting/endPrinting - we already have methods with these names, and they do different things, being called at a different time. It might be better to just get a WKView (or NSWindow) pointer somehow, and have this code inside WKPrintingView, not in a page client. Not sure how to best do that, will land as is for now.
Committed <http://trac.webkit.org/changeset/77386>.