Skip to content
  • adachan's avatar
    2007-08-02 Ada Chan <adachan@apple.com> · 3fb6471c
    adachan authored
            Reviewed by Steve.
    
    WebCore:
            <rdar://problem/5079175> Added parameters headerHeight and footerHeight to 
            computePageRectsForFrame() so we can account for the header and footer when
            calculating page heights for this frame.
    
            * bridge/win/FrameWin.cpp:
            (WebCore::computePageRectsForFrame):
            * bridge/win/FrameWin.h:
            
    WebKit/win:
            <rdar://problem/5079175> Printing header and footer
    
            * Interfaces/IWebUIDelegate.idl: added methods for header/footer drawing.
            * WebFrame.cpp:
            (WebFrame::headerAndFooterHeights): ask client for the header and 
            footer heights via IWebUIDelegate2 methods.
            (WebFrame::computePageRects): pass in header and footer heights when
            calculating page rect heights.
            (WebFrame::spoolPages): ask client to draw header and footer via
            IWebUIDelegate2 methods.
            * WebFrame.h:
            * WebKitGraphics.cpp:
            (DrawTextAtPoint): the code assumes color has 4 components - might as well
            assert it.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3fb6471c