Changeset 76433 in webkit


Ignore:
Timestamp:
Jan 22, 2011 12:22:00 AM (13 years ago)
Author:
ap@apple.com
Message:

2011-01-22 Alexey Proskuryakov <ap@apple.com>

Reviewed by Dan Bernstein.

https://bugs.webkit.org/show_bug.cgi?id=52951
WebKit2 generates a bad PDF for cross process messaging

  • page/PrintContext.cpp: (WebCore::PrintContext::spoolRect): Use a correct offset to actually draw inside the requested rectangle.

2011-01-22 Alexey Proskuryakov <ap@apple.com>

Reviewed by Dan Bernstein.

https://bugs.webkit.org/show_bug.cgi?id=52951
WebKit2 generates a bad PDF for cross process messaging

  • UIProcess/API/mac/WKView.mm: (-[WKView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]): Use a correct offset when flipping.
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r76429 r76433  
     12011-01-22  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=52951
     6        WebKit2 generates a bad PDF for cross process messaging
     7
     8        * page/PrintContext.cpp: (WebCore::PrintContext::spoolRect): Use a correct offset to actually
     9        draw inside the requested rectangle.
     10
    1112011-01-21  Yury Semikhatsky  <yurys@chromium.org>
    212
  • trunk/Source/WebCore/page/PrintContext.cpp

    r75958 r76433  
    167167    ctx.save();
    168168    ctx.scale(FloatSize(1, -1));
    169     ctx.translate(0, -rect.height());
     169    ctx.translate(0, -m_frame->view()->contentsHeight());
    170170    ctx.clip(rect);
    171171    m_frame->view()->paintContents(&ctx, rect);
  • trunk/Source/WebKit2/ChangeLog

    r76418 r76433  
     12011-01-22  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=52951
     6        WebKit2 generates a bad PDF for cross process messaging
     7
     8        * UIProcess/API/mac/WKView.mm:
     9        (-[WKView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
     10        Use a correct offset when flipping.
     11
    1122011-01-21  Alexey Proskuryakov  <ap@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r76393 r76433  
    14981498    // Flip the destination.
    14991499    CGContextScaleCTM(context, 1, -1);
    1500     CGContextTranslateCTM(context, 0, -rect.size.height);
     1500    CGContextTranslateCTM(context, 0, -CGPDFPageGetBoxRect(pdfPage, kCGPDFMediaBox).size.height);
    15011501    CGContextDrawPDFPage(context, pdfPage);
    15021502    CGContextRestoreGState(context);
Note: See TracChangeset for help on using the changeset viewer.