Skip to content
  • mitz@apple.com's avatar
    WebCore: · 1fa9548a
    mitz@apple.com authored
            Reviewed by Anders Carlsson.
    
            - eliminate WebCoreTextRenderer
    
            * WebCore.base.exp: Updated.
            * WebCore.xcodeproj/project.pbxproj: Removed WebCoreTextRenderer.{h,mm}
                and promoted WebFontCache.h to private.
            * platform/graphics/Font.cpp:
            (WebCore::Font::setShouldUseSmoothing): Added this static setter for
                a new file-static boolean.
            (WebCore::Font::shouldUseSmoothing): Added this static getter.
            * platform/graphics/Font.h: Decleared setShouldUseSmoothing() and
                shouldUseSmoothing().
            * platform/graphics/mac/FontMac.mm:
            (WebCore::Font::drawGlyphs): Use Font::shouldUseSmoothing() instead of
            WebCoreShouldUseFontSmoothing().
            * platform/graphics/mac/WebLayer.mm: Removed unneeded #import.
            * platform/mac/WebCoreTextRenderer.h: Removed.
            * platform/mac/WebCoreTextRenderer.mm: Removed.
    
    WebKit:
    
            Reviewed by Anders Carlsson.
    
            - WebKit project part of eliminating WebCoreTextRenderer
    
            * WebKit.xcodeproj/project.pbxproj: Changed WebKitNSStringExtras.m to
                compile as Objective-C++.
    
    WebKit/mac:
    
            Reviewed by Anders Carlsson.
    
            - WebKit part of eliminating WebCoreTextRenderer
    
            * Misc/WebKitNSStringExtras.m:
            (webkit_CGCeiling): Added.
            (-[NSString _web_drawAtPoint:font:textColor:]): Replaced the malloc()ed
                string buffer with a Vector. Moved code from
                WebCoreDrawTextAtPoint() to here.
            (-[NSString _web_drawDoubledAtPoint:withTopColor:bottomColor:font:]):
            (-[NSString _web_widthWithFont:]): Replaced the malloc()ed string buffer
                with a Vector. Moved code from WebCoreTextFloatWidth() to here.
            * WebView/WebHTMLView.mm:
            (-[WebHTMLView _addToStyle:fontA:fontB:]): Replaced call to
                WebCoreFindFont() with use of
                +[WebFontCache fontWithFamily:traits:weight:size:].
            * WebView/WebView.mm:
            (+[WebView _setAlwaysUsesComplexTextCodePath:]): Changed to call
                Font::setCodePath() directly.
            (+[WebView _setShouldUseFontSmoothing:]): Changed to call
                Font::setShouldUseSmoothing().
            (+[WebView _shouldUseFontSmoothing]): Changed to call 
                Font::shouldUseSmoothing().
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1fa9548a