Reviewed by Darin
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 22:35:26 +0000 (22:35 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 22:35:26 +0000 (22:35 +0000)
commit6077e0fd398026fe2cfaa7d004a9fcecd6483811
treecb169a237b1f504583daaa4c4252783e78f7cd7d
parentb630989918451dc3d4094c9e5d5197665dc7ae47
    Reviewed by Darin

        - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
        to avoid printing an almost-empty page

        * WebView/WebHTMLView.m:
        (-[NSArray knowsPageRange:]):
        If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
        out of ... the air), then we adjust the scale factor slightly and check whether this reduces
        the page count and thus eliminates the orphan.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/ChangeLog
WebKit/WebView/WebHTMLView.m