• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebKit-7600.1.25/win/

Lines Matching refs:pctx

1575 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
1580 ui->drawHeaderInRect(d->webView, &headerRect, reinterpret_cast<ULONG_PTR>(pctx));
1583 void WebFrame::drawFooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT pageCount, float headerHeight, float footerHeight)
1588 ui->drawFooterInRect(d->webView, &footerRect, reinterpret_cast<ULONG_PTR>(pctx), page + 1, pageCount);
1591 void WebFrame::spoolPage(PlatformGraphicsContext* pctx, GraphicsContext* spoolCtx, HDC printDC, IWebUIDelegate* ui, float headerHeight, float footerHeight, UINT page, UINT pageCount)
1597 CGContextSaveGState(pctx);
1605 CGContextBeginPage(pctx, &mediaBox);
1608 CGAffineTransform ctm = CGContextGetBaseCTM(pctx);
1611 CGContextScaleCTM(pctx, scale, scale);
1612 CGContextTranslateCTM(pctx, CGFloat(-pageRect.x()), CGFloat(-pageRect.y()+headerHeight)); // reserves space for header
1613 CGContextSetBaseCTM(pctx, ctm);
1617 CGContextTranslateCTM(pctx, CGFloat(pageRect.x()), CGFloat(pageRect.y())-headerHeight);
1620 drawHeader(pctx, ui, pageRect, headerHeight);
1623 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);
1625 CGContextEndPage(pctx);
1626 CGContextRestoreGState(pctx);
1646 static HDC hdcFromContext(PlatformGraphicsContext* pctx)
1648 return cairo_win32_surface_get_dc(cairo_get_target(pctx->cr()));
1651 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
1653 HDC hdc = hdcFromContext(pctx);
1662 void WebFrame::drawFooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT pageCount, float headerHeight, float footerHeight)
1664 HDC hdc = hdcFromContext(pctx);
1688 void WebFrame::spoolPage(PlatformGraphicsContext* pctx, GraphicsContext* spoolCtx, HDC printDC, IWebUIDelegate* ui, float headerHeight, float footerHeight, UINT page, UINT pageCount)
1696 HDC hdc = hdcFromContext(pctx);
1703 cairo_t* cr = pctx->cr();
1740 drawHeader(pctx, ui, pageRect, headerHeight);
1743 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);
1807 PlatformGraphicsContext* pctx = &platformContext;
1831 PlatformGraphicsContext* pctx = (PlatformGraphicsContext*)ctx;
1851 GraphicsContext spoolCtx(pctx);
1855 spoolPage(pctx, &spoolCtx, printDC, ui.get(), headerHeight, footerHeight, ii, pageCount);