Changeset 29753 in webkit


Ignore:
Timestamp:
Jan 23, 2008 4:47:00 PM (16 years ago)
Author:
ddkilzer@apple.com
Message:

<rdar://problem/5702947> WebCore: CGContextDrawPDFDocument will be deprecated

Reviewed by Darin.

No test cases added since there is no change in behavior.

  • platform/graphics/cg/PDFDocumentImage.cpp: (WebCore::PDFDocumentImage::draw): Replace CGContextDrawPDFDocument() with calls to CG methods that perform the equivalent work.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r29752 r29753  
     12008-01-23  David Kilzer  <ddkilzer@apple.com>
     2
     3        <rdar://problem/5702947> WebCore: CGContextDrawPDFDocument will be deprecated
     4
     5        Reviewed by Darin.
     6
     7        No test cases added since there is no change in behavior.
     8
     9        * platform/graphics/cg/PDFDocumentImage.cpp:
     10        (WebCore::PDFDocumentImage::draw): Replace CGContextDrawPDFDocument() with
     11        calls to CG methods that perform the equivalent work.
     12
    1132008-01-23  Antti Koivisto  <antti@apple.com>
    214
  • trunk/WebCore/platform/graphics/cg/PDFDocumentImage.cpp

    r24970 r29753  
    166166    adjustCTM(context);
    167167
    168     // Media box may have non-zero origin which we ignore. Pass 1 for the page number.
    169     CGContextDrawPDFDocument(context->platformContext(), FloatRect(FloatPoint(), m_mediaBox.size()),
    170         m_document, m_currentPage + 1);
    171    
     168    CGContextTranslateCTM(context->platformContext(), -m_mediaBox.x(), -m_mediaBox.y());
     169    CGContextDrawPDFPage(context->platformContext(), CGPDFDocumentGetPage(m_document, m_currentPage + 1));
     170
    172171    context->restore();
    173172
Note: See TracChangeset for help on using the changeset viewer.