<rdar://problem/5651534> REGRESSION(r28764-r28765): GDI leak drawing text...
authorsfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2007 22:56:48 +0000 (22:56 +0000)
committersfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2007 22:56:48 +0000 (22:56 +0000)
commit0584318c8befdbe50f8e823232c9d223129f491f
treeb265d493a2c0d7832b89993bf483d134cb2d58c7
parentb88d1fceeda08acce4dbf64d033ca98ac2d188e1
    <rdar://problem/5651534> REGRESSION(r28764-r28765): GDI leak drawing text when no appropriate font is available

        Our captured metafile from Uniscribe may contain multiple calls to CreateFontIndirect.
        Only create a font with the last one.

        Reviewed by Mitz, Darin.

        * platform/graphics/win/FontCacheWin.cpp:
        (WebCore::metaFileEnumProc):
        (WebCore::FontCache::getFontDataForCharacters):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/win/FontCacheWin.cpp