Land Webpage.cpp for previous patch. Change was lost after conflict resolution from...
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Feb 2011 18:49:59 +0000 (18:49 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Feb 2011 18:49:59 +0000 (18:49 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@77259 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/WebProcess/WebPage/WebPage.cpp

index 61fd8e7..0d9eb34 100644 (file)
@@ -1837,7 +1837,7 @@ void WebPage::computePagesForPrinting(uint64_t frameID, const PrintInfo& printIn
 
     if (m_printContext) {
         resultPageRects = m_printContext->pageRects();
-        resultTotalScaleFactorForPrinting = m_printContext->computeAutomaticScaleFactor(printInfo.availablePaperWidth) * printInfo.pageSetupScaleFactor;
+        resultTotalScaleFactorForPrinting = m_printContext->computeAutomaticScaleFactor(FloatSize(printInfo.availablePaperWidth, printInfo.availablePaperHeight)) * printInfo.pageSetupScaleFactor;
     }
 
     // If we're asked to print, we should actually print at least a blank page.