Reviewed by Hyatt.
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Nov 2004 01:07:17 +0000 (01:07 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Nov 2004 01:07:17 +0000 (01:07 +0000)
commit4889cc52595cf3beeea4e8bbec25a2779bb4b10c
tree6e3280bfad95f7635fb55e22120fb44009c8800c
parentb10b16b641325a2f0fb0eb5889d1c327bed8ae58
    Reviewed by Hyatt.

        - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
        very large bookmarks menu, so I cached this one NSFont object.

        * Misc.subproj/WebStringTruncator.m:
        (defaultMenuFont):
        new function, caches the font used when no font is specified
        (+[WebStringTruncator centerTruncateString:toWidth:]):
        call new function

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/ChangeLog
WebKit/Misc.subproj/WebStringTruncator.m