Title: [115832] trunk/Source/WebKit/qt
Revision
115832
Author
[email protected]
Date
2012-05-02 08:08:03 -0700 (Wed, 02 May 2012)

Log Message

[Qt] Pass page-height to PrintContext::begin to fix print layouting
https://bugs.webkit.org/show_bug.cgi?id=84864

Patch by Milian Wolff <[email protected]> on 2012-05-02
Reviewed by Simon Hausmann.

* Api/qwebframe.cpp:
(QWebFrame::print):

Modified Paths

Diff

Modified: trunk/Source/WebKit/qt/Api/qwebframe.cpp (115831 => 115832)


--- trunk/Source/WebKit/qt/Api/qwebframe.cpp	2012-05-02 14:55:40 UTC (rev 115831)
+++ trunk/Source/WebKit/qt/Api/qwebframe.cpp	2012-05-02 15:08:03 UTC (rev 115832)
@@ -1509,7 +1509,7 @@
                      int(qprinterRect.width() / zoomFactorX),
                      int(qprinterRect.height() / zoomFactorY));
 
-    printContext.begin(pageRect.width());
+    printContext.begin(pageRect.width(), pageRect.height());
 
     printContext.computePageRects(pageRect, /* headerHeight */ 0, /* footerHeight */ 0, /* userScaleFactor */ 1.0, pageHeight);
 

Modified: trunk/Source/WebKit/qt/ChangeLog (115831 => 115832)


--- trunk/Source/WebKit/qt/ChangeLog	2012-05-02 14:55:40 UTC (rev 115831)
+++ trunk/Source/WebKit/qt/ChangeLog	2012-05-02 15:08:03 UTC (rev 115832)
@@ -1,3 +1,13 @@
+2012-05-02  Milian Wolff  <[email protected]>
+
+        [Qt] Pass page-height to PrintContext::begin to fix print layouting
+        https://bugs.webkit.org/show_bug.cgi?id=84864
+
+        Reviewed by Simon Hausmann.
+
+        * Api/qwebframe.cpp:
+        (QWebFrame::print):
+
 2012-05-02  Kenneth Rohde Christiansen  <[email protected]>
 
         [Qt] Add initial QML documentation
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to