Changeset 54494

Show
Ignore:
Timestamp:
02/08/10 10:20:57 (6 weeks ago)
Author:
bfulgham@webkit.org
Message:

Include header position in World Transform used for plugin positioning.
 https://bugs.webkit.org/show_bug.cgi?id=34709

Reviewed by Adam Roben.

* WebFrame.cpp:
(WebFrame::spoolPage): Correct WinCairo plugin print positioning to

account for header size. Existing code ignored this, causing
plugins to overlay other elements.

Location:
trunk/WebKit/win
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/win/ChangeLog

    r54376 r54494  
     12010-02-08  Brent Fulgham  <bfulgham@webkit.org> 
     2 
     3        Reviewed by Adam Roben. 
     4 
     5        Include header position in World Transform used for plugin positioning. 
     6        https://bugs.webkit.org/show_bug.cgi?id=34709 
     7 
     8        * WebFrame.cpp: 
     9        (WebFrame::spoolPage): Correct WinCairo plugin print positioning to 
     10          account for header size.  Existing code ignored this, causing 
     11          plugins to overlay other elements. 
     12 
    1132010-02-04  Alice Liu  <alice.liu@apple.com> 
    214 
  • trunk/WebKit/win/WebFrame.cpp

    r54370 r54494  
    20852085    // Modify Cairo and GDI World Transform to account for margin in the 
    20862086    // subsequent WebKit-controlled 'paintContents' drawing operations: 
    2087     spoolCtx->translate(cairoMarginRect.x(), cairoMarginRect.y()); 
     2087    spoolCtx->translate(cairoMarginRect.x(), cairoMarginRect.y() + headerHeight); 
    20882088 
    20892089    // Modify Cairo (only) to account for page position. 
    2090     cairo_translate(pctx, -pageRect.x(), -pageRect.y() + headerHeight); 
     2090    cairo_translate(pctx, -pageRect.x(), -pageRect.y()); 
    20912091    coreFrame->view()->paintContents(spoolCtx, pageRect); 
    20922092 
    2093     cairo_translate(pctx, pageRect.x(), pageRect.y() - headerHeight); 
     2093    cairo_translate(pctx, pageRect.x(), pageRect.y()); 
    20942094 
    20952095    XFORM originalWorld;