Summary: | Stepping through print previews in WebKit2 mode steps in and out of printing mode a lot | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||
Component: | Printing | Assignee: | Alexey Proskuryakov <ap> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | sam | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.6 | ||||||
Attachments: |
|
Description
Alexey Proskuryakov
2011-02-01 17:40:27 PST
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>. |