Skip to content
  • mitz@apple.com's avatar
    <rdar://problem/8799835> hyphenate-character: auto should fall back to... · 2e09ed2f
    mitz@apple.com authored
    <rdar://problem/8799835> hyphenate-character: auto should fall back to hyphen-minus if the primary font lacks a hyphen glyph
    https://bugs.webkit.org/show_bug.cgi?id=51915
    
    Reviewed by Darin Adler.
    
    WebCore: 
    
    This changes the results of existing tests in fast/text.
    
    * platform/graphics/Font.h:
    * platform/graphics/FontFastPath.cpp:
    (WebCore::Font::primaryFontHasGlyphForCharacter): Added.
    * rendering/style/RenderStyle.cpp:
    * platform/graphics/qt/FontQt.cpp:
    (WebCore::Font::primaryFontHasGlyphForCharacter): Added a stub.
    (WebCore::RenderStyle::hyphenString): For hyphenate-character: auto, return a
    hyphen only if the primary font has a hyphen glyph, and otherwise return a
    hyphen-minus.
    
    LayoutTests: 
    
    * platform/mac/fast/text/basic/014-expected.checksum:
    * platform/mac/fast/text/basic/014-expected.png:
    * platform/mac/fast/text/basic/014-expected.txt:
    * platform/mac/fast/text/capitalize-boundaries-expected.checksum:
    * platform/mac/fast/text/capitalize-boundaries-expected.png:
    * platform/mac/fast/text/capitalize-boundaries-expected.txt:
    * platform/mac/fast/text/midword-break-after-breakable-char-expected.checksum:
    * platform/mac/fast/text/midword-break-after-breakable-char-expected.png:
    * platform/mac/fast/text/midword-break-after-breakable-char-expected.txt:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2e09ed2f