Home | History | Annotate | Download | only in win

Lines Matching defs:pageRect

1927     IntRect pageRect = printerRect(printDC);
1930 pageRect.x() + marginRect.x(),
1931 pageRect.y() + marginRect.y(),
1932 pageRect.width() - marginRect.x() - marginRect.right(),
1933 pageRect.height() - marginRect.y() - marginRect.bottom());
1967 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
1969 int x = pageRect.x();
1971 RECT headerRect = {x, y, x+pageRect.width(), y+static_cast<int>(headerHeight)};
1975 void WebFrame::drawFooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT pageCount, float headerHeight, float footerHeight)
1977 int x = pageRect.x();
1978 int y = max((int)headerHeight+pageRect.height(), m_pageHeight-static_cast<int>(footerHeight));
1979 RECT footerRect = {x, y, x+pageRect.width(), y+static_cast<int>(footerHeight)};
1987 IntRect pageRect = m_pageRects[page];
1999 CGFloat scale = static_cast<float>(mediaBox.size.width)/static_cast<float>(pageRect.width());
2002 ctm = CGAffineTransformTranslate(ctm, CGFloat(-pageRect.x()), CGFloat(-pageRect.y()+headerHeight)); // reserves space for header
2004 CGContextTranslateCTM(pctx, CGFloat(-pageRect.x()), CGFloat(-pageRect.y()+headerHeight)); // reserves space for header
2007 coreFrame->view()->paintContents(spoolCtx, pageRect);
2009 CGContextTranslateCTM(pctx, CGFloat(pageRect.x()), CGFloat(pageRect.y())-headerHeight);
2012 drawHeader(pctx, ui, pageRect, headerHeight);
2015 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);
2021 static float scaleFactor(HDC printDC, const IntRect& marginRect, const IntRect& pageRect)
2031 float scale = static_cast<float>(adjustedRect.width()) / static_cast<float>(pageRect.width());
2044 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
2049 const float scale = scaleFactor(hdc, marginRect, pageRect);
2050 int x = static_cast<int>(scale * pageRect.x());
2052 RECT headerRect = {x, y, x + static_cast<int>(scale * pageRect.width()), y + static_cast<int>(scale * headerHeight)};
2057 void WebFrame::drawFooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT pageCount, float headerHeight, float footerHeight)
2062 const float scale = scaleFactor(hdc, marginRect, pageRect);
2063 int x = static_cast<int>(scale * pageRect.x());
2064 int y = static_cast<int>(scale * max(static_cast<int>(headerHeight) + pageRect.height(), m_pageHeight-static_cast<int>(footerHeight)));
2065 RECT footerRect = {x, y, x + static_cast<int>(scale * pageRect.width()), y + static_cast<int>(scale * footerHeight)};
2074 const IntRect& pageRect = m_pageRects[page];
2079 float scale = scaleFactor(printDC, marginRect, pageRect);
2090 cairo_translate(pctx, -pageRect.x(), -pageRect.y());
2091 coreFrame->view()->paintContents(spoolCtx, pageRect);
2093 cairo_translate(pctx, pageRect.x(), pageRect.y());
2107 drawHeader(pctx, ui, pageRect, headerHeight);
2110 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);