Lines Matching refs:pageRect
2077 IntRect pageRect = printerRect(printDC); in computePageRects() local
2080 pageRect.x() + marginRect.x(), in computePageRects()
2081 pageRect.y() + marginRect.y(), in computePageRects()
2082 pageRect.width() - marginRect.x() - marginRect.maxX(), in computePageRects()
2083 pageRect.height() - marginRect.y() - marginRect.maxY()); in computePageRects()
2117 …eader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeig… in drawHeader() argument
2119 int x = pageRect.x(); in drawHeader()
2121 RECT headerRect = {x, y, x+pageRect.width(), y+static_cast<int>(headerHeight)}; in drawHeader()
2125 …ooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT … in drawFooter() argument
2127 int x = pageRect.x(); in drawFooter()
2128 int y = max((int)headerHeight+pageRect.height(), m_pageHeight-static_cast<int>(footerHeight)); in drawFooter()
2129 RECT footerRect = {x, y, x+pageRect.width(), y+static_cast<int>(footerHeight)}; in drawFooter()
2137 IntRect pageRect = m_pageRects[page]; in spoolPage() local
2149 CGFloat scale = static_cast<float>(mediaBox.size.width)/static_cast<float>(pageRect.width()); in spoolPage()
2152 …ctm = CGAffineTransformTranslate(ctm, CGFloat(-pageRect.x()), CGFloat(-pageRect.y()+headerHeight))… in spoolPage()
2154 …CGContextTranslateCTM(pctx, CGFloat(-pageRect.x()), CGFloat(-pageRect.y()+headerHeight)); // res… in spoolPage()
2157 coreFrame->view()->paintContents(spoolCtx, pageRect); in spoolPage()
2159 CGContextTranslateCTM(pctx, CGFloat(pageRect.x()), CGFloat(pageRect.y())-headerHeight); in spoolPage()
2162 drawHeader(pctx, ui, pageRect, headerHeight); in spoolPage()
2165 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight); in spoolPage()
2171 static float scaleFactor(HDC printDC, const IntRect& marginRect, const IntRect& pageRect) in scaleFactor() argument
2181 float scale = static_cast<float>(adjustedRect.width()) / static_cast<float>(pageRect.width()); in scaleFactor()
2193 …eader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeig… in drawHeader() argument
2197 int x = pageRect.x(); in drawHeader()
2199 RECT headerRect = {x, y, x + pageRect.width(), y + static_cast<int>(headerHeight)}; in drawHeader()
2204 …ooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT … in drawFooter() argument
2208 int x = pageRect.x(); in drawFooter()
2209 …int y = max(static_cast<int>(headerHeight) + pageRect.height(), m_pageHeight -static_cast<int>(fo… in drawFooter()
2210 RECT footerRect = {x, y, x + pageRect.width(), y + static_cast<int>(footerHeight)}; in drawFooter()
2234 const IntRect& pageRect = m_pageRects[page]; in spoolPage() local
2255 float scale = scaleFactor(printDC, marginRect, pageRect); in spoolPage()
2266 cairo_translate(cr, -pageRect.x(), -pageRect.y()); in spoolPage()
2267 coreFrame->view()->paintContents(spoolCtx, pageRect); in spoolPage()
2268 cairo_translate(cr, pageRect.x(), pageRect.y()); in spoolPage()
2282 drawHeader(pctx, ui, pageRect, headerHeight); in spoolPage()
2285 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight); in spoolPage()