Home | History | Annotate | Download | only in win

Lines Matching refs:headerHeight

2027 void WebFrame::headerAndFooterHeights(float* headerHeight, float* footerHeight)
2029 if (headerHeight)
2030 *headerHeight = 0;
2037 if (headerHeight && SUCCEEDED(ui->webViewHeaderHeight(d->webView, &height)))
2038 *headerHeight = height;
2075 float headerHeight = 0, footerHeight = 0;
2076 headerAndFooterHeights(&headerHeight, &footerHeight);
2085 computePageRectsForFrame(coreFrame, adjustedRect, headerHeight, footerHeight, 1.0,m_pageRects, m_pageHeight);
2117 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
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)
2128 int y = max((int)headerHeight+pageRect.height(), m_pageHeight-static_cast<int>(footerHeight));
2133 void WebFrame::spoolPage(PlatformGraphicsContext* pctx, GraphicsContext* spoolCtx, HDC printDC, IWebUIDelegate* ui, float headerHeight, float footerHeight, UINT page, UINT pageCount)
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
2159 CGContextTranslateCTM(pctx, CGFloat(pageRect.x()), CGFloat(pageRect.y())-headerHeight);
2161 if (headerHeight)
2162 drawHeader(pctx, ui, pageRect, headerHeight);
2165 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);
2193 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
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)
2209 int y = max(static_cast<int>(headerHeight) + pageRect.height(), m_pageHeight -static_cast<int>(footerHeight));
2230 void WebFrame::spoolPage(PlatformGraphicsContext* pctx, GraphicsContext* spoolCtx, HDC printDC, IWebUIDelegate* ui, float headerHeight, float footerHeight, UINT page, UINT pageCount)
2263 cairo_translate(cr, cairoMarginRect.x(), cairoMarginRect.y() + headerHeight);
2281 if (headerHeight)
2282 drawHeader(pctx, ui, pageRect, headerHeight);
2285 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);
2391 float headerHeight = 0, footerHeight = 0;
2392 headerAndFooterHeights(&headerHeight, &footerHeight);
2397 spoolPage(pctx, &spoolCtx, printDC, ui.get(), headerHeight, footerHeight, ii, pageCount);