Skip to content
  • mitz@apple.com's avatar
    Added Font::typesettingFeatures() and deployed it · 8c85d97b
    mitz@apple.com authored
    Reviewed by Sam Weinig.
    
    No change in funcitonality
    
    * WebCore.xcodeproj/project.pbxproj: Added TypesettingFeatures.h.
    * platform/graphics/Font.h:
    (WebCore::Font::typesettingFeatures): Added. Determines the typesetting
        features from the text redndering mode.
    * platform/graphics/FontFastPath.cpp:
    (WebCore::Font::canUseGlyphCache): Use typesettingFeatures().
    * platform/graphics/SimpleFontData.h:
    * platform/graphics/TypesettingFeatures.h: Added.
    * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
    (WebCore::disableLigatures): Take TypesettingFeatures instead of
        TextRenderingMode.
    (WebCore::initializeATSUStyle): Ditto.
    (WebCore::ComplexTextController::collectComplexTextRunsForCharactersATSUI):
        Use typesettingFeatures().
    * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
    (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
        Ditto.
    * platform/graphics/mac/SimpleFontDataMac.mm:
    (WebCore::SimpleFontData::getCFStringAttributes): Take
        TypesettingFeatures instead of TextRenderingMode.
    * rendering/RenderBlockLineLayout.cpp:
    (WebCore::RenderBlock::findNextLineBreak): Use TypesettingFeatures().
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8c85d97b