Lines Matching defs:pageRect

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