2007-08-24 Jon Honeycutt <jhoneycutt@apple.com>
authorhoneycutt <honeycutt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2007 22:54:42 +0000 (22:54 +0000)
committerhoneycutt <honeycutt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2007 22:54:42 +0000 (22:54 +0000)
commit671ca8bab8677f4e57f24b66acabf86704c56c4e
tree1e35d779bf28fc3d48ac29be672bd2d64855dc0c
parent8974876ef10b08b3c91e0f9e27cc087b32faef9b
2007-08-24  Jon Honeycutt  <jhoneycutt@apple.com>

        Reviewed by Darin.

        <rdar://problem/5433236> Print preview of empty txt file crashes Safari
        Fix: Adjust computePageRectsForFrame to always return at least one
        page rect, even if document height is zero.

        * WebCore.vcproj/WebCore.vcproj:
        * bridge/win/FrameWin.h: Added Vector& parameter to
        computePagesRectsForFrame; changed its return type to void.
        * bridge/win/FrameWin.cpp:
        (WebCore::computePageRectsForFrame): Reordered the loop that inserts
        rects into the vector.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bridge/win/FrameWin.cpp
WebCore/bridge/win/FrameWin.h