Skip to content
  • mitz@apple.com's avatar
    WebCore: · b74d5ba6
    mitz@apple.com authored
            Reviewed by John Sullivan.
    
            - render text shadows with zero offset, as the shadow can be seen behind
              the text if the text is translucent
    
            Test: fast/text/shadow-no-blur.html
    
            * platform/graphics/mac/FontMac.mm:
            (WebCore::Font::drawComplexText): Removed the isEmpty() condition on the
            shadow offset. Since isEmpty() is also true for sizes that have one or
            more non-positive components, this also ensures that subpixel
            antialiasing of the text is maintained with shadows in all directions.
            (WebCore::Font::drawGlyphs): Ditto.
            * platform/graphics/win/FontCGWin.cpp:
            (WebCore::Font::drawGlyphs): Ditto.
    
    LayoutTests:
    
            Reviewed by John Sullivan.
    
            - add pixel test for text shadows with zero blur and various offsets,
              including zero offset
    
            * fast/text/shadow-no-blur.html: Added.
            * platform/mac/fast/text/shadow-no-blur-expected.checksum: Added.
            * platform/mac/fast/text/shadow-no-blur-expected.png: Added.
            * platform/mac/fast/text/shadow-no-blur-expected.txt: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b74d5ba6