Reviewed by Dave Hyatt.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2009 05:41:29 +0000 (05:41 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2009 05:41:29 +0000 (05:41 +0000)
commit98a90d3cf244e5021ee7f9818700659fe6fb029b
treee3a5ec759442d24824e4b9ffba59750c69fadfbf
parentb784b2917cb67d0b1fe03f408f2adc81d50068ac
    Reviewed by Dave Hyatt.

        - fix <rdar://problem/6568942> REGRESSION: Font rendering in Wikipedia input field is incorrect (default GDI text mode)

        * platform/graphics/win/SimpleFontDataWin.cpp:
        (WebCore::SimpleFontData::widthForGDIGlyph): Make sure that the DC is
        in the advanced graphics mode before calling GetCharWidthI(), because
        otherwise that function returns incorrect results for the default UI
        font at a certain size.

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