Created attachment 44515 [details] Small example to reproduce the problem using cnn.com When a QWebFrame has a zoom factor set on it and then it is printed then parts of the HTML appear to have been scaled even though the zoom factor should not effect printing at all. In the example attached this uses cnn.com to show the differences since its clearer, the HTML can be cut down to be this: <html><head> <link rel="stylesheet" type="text/css" href="http://i.cdn.turner.com/cnn/.element/css/3.0/main.css"> </head><body id="cnnMainPage"> <div class="cnn_shdcaheader"></div> <div class="cnn_clear"></div> <div class="cnn_shdcafooter"></div> </body></html> and it still occurs although its a lot less obvious (in case this helps).
Please follow the QtWebKit bug reporting guidelines when reporting bugs. See http://trac.webkit.org/wiki/QtWebKitBugs Specifically: - The 'QtWebKit' component should only be used for bugs/features in the public QtWebKit API layer, not to signify that the bug is specific to the Qt port of WebKit http://trac.webkit.org/wiki/QtWebKitBugs#Component - Add the keyword 'Qt' to signal that it's a Qt-related bug http://trac.webkit.org/wiki/QtWebKitBugs#Keywords
Reproduced in arora on Windows by: - Zooming out using Ctrl+ScrollWheel - Selecting File/PrintPreview
Created attachment 80630 [details] Reset the zoom factor before creating a printcontext & restore it after pooling is done This is a little bit hacky patch. But seems to be working. Moreover this is my first patch. So, please guide me through to make this a fully acceptable patch.
Attachment 80630 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files']" exit_code: 1 Total errors found: 0 in 0 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 80634 [details] Fixing the style checker failure. Stylecheck fixed!!
Adding some CC
Comment on attachment 80634 [details] Fixing the style checker failure. Needs ChangeLog and ideally test.
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.