Changeset 175972 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 1:37:03 PM (11 years ago)
Author:
mmaxfield@apple.com
Message:

Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI
https://bugs.webkit.org/show_bug.cgi?id=138623

Reviewed by Geoff Garen.

Source/WebCore:

No new tests because there is no behavior change.

  • WebCore.exp.in:
  • WebCore.order:
  • platform/graphics/mac/GlyphPageTreeNodeMac.cpp:

(WebCore::GlyphPage::fill):

  • platform/graphics/mac/SimpleFontDataMac.mm:

(WebCore::SimpleFontData::canRenderCombiningCharacterSequence):

  • platform/ios/WebCoreSystemInterfaceIOS.mm:
  • platform/mac/WebCoreSystemInterface.h:
  • platform/mac/WebCoreSystemInterface.mm:
  • platform/spi/cocoa/CoreTextSPI.h:

Source/WebKit/mac:

  • WebCoreSupport/WebSystemInterface.mm:

(InitWebCoreSystemInterface):

  • WebKit.order:

Source/WebKit2:

  • WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:

(InitWebCoreSystemInterface):

  • mac/WebKit2.order:
Location:
trunk/Source
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175971 r175972  
     12014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI
     4        https://bugs.webkit.org/show_bug.cgi?id=138623
     5
     6        Reviewed by Geoff Garen.
     7
     8        No new tests because there is no behavior change.
     9
     10        * WebCore.exp.in:
     11        * WebCore.order:
     12        * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
     13        (WebCore::GlyphPage::fill):
     14        * platform/graphics/mac/SimpleFontDataMac.mm:
     15        (WebCore::SimpleFontData::canRenderCombiningCharacterSequence):
     16        * platform/ios/WebCoreSystemInterfaceIOS.mm:
     17        * platform/mac/WebCoreSystemInterface.h:
     18        * platform/mac/WebCoreSystemInterface.mm:
     19        * platform/spi/cocoa/CoreTextSPI.h:
     20
    1212014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
    222
  • trunk/Source/WebCore/WebCore.exp.in

    r175961 r175972  
    21572157_wkCopyNSURLResponseStatusLine
    21582158_wkCopyRequestWithStorageSession
    2159 _wkCreateCTLineWithUniCharProvider
    2160 _wkCreateCTTypesetterWithUniCharProviderAndOptions
    21612159_wkCreatePrivateStorageSession
    21622160_wkDeleteAllHTTPCookies
     
    24522450_wkGetNSURLResponseCalculatedExpiration
    24532451_wkGetNSURLResponseMustRevalidate
    2454 _wkGetVerticalGlyphsForCharacters
    24552452_wkGetWheelEventDeltas
    24562453_wkHitTestMediaUIPart
     
    28642861_wkGetUserAgent
    28652862_wkGetVendorNameForNavigator
    2866 _wkGetVerticalGlyphsForCharacters
    28672863_wkIsGB18030ComplianceRequired
    28682864_wkIsOptimizedFullscreenSupported
  • trunk/Source/WebCore/WebCore.order

    r175960 r175972  
    3059030590_wkSetCONNECTProxyAuthorizationForStream
    3059130591_wkCopyCONNECTProxyResponse
    30592 _wkGetVerticalGlyphsForCharacters
    30593 _wkCreateCTLineWithUniCharProvider
    30594 _wkCreateCTTypesetterWithUniCharProviderAndOptions
    3059530592_wkIOSurfaceContextCreate
    3059630593_wkIOSurfaceContextCreateImage
  • trunk/Source/WebCore/platform/graphics/mac/GlyphPageTreeNodeMac.cpp

    r174052 r175972  
    3131
    3232#include "CGFontUnicodeSupportSPI.h"
     33#include "CoreTextSPI.h"
    3334#include "Font.h"
    3435#include "SimpleFontData.h"
     
    8485            }
    8586        }
    86     } else if (!fontData->platformData().isCompositeFontReference() && ((fontData->platformData().widthVariant() == RegularWidth) ? wkGetVerticalGlyphsForCharacters(fontData->platformData().ctFont(), buffer, glyphs.data(), bufferLength)
     87    } else if (!fontData->platformData().isCompositeFontReference() && ((fontData->platformData().widthVariant() == RegularWidth) ? CTFontGetVerticalGlyphsForCharacters(fontData->platformData().ctFont(), buffer, glyphs.data(), bufferLength)
    8788               : CTFontGetGlyphsForCharacters(fontData->platformData().ctFont(), buffer, glyphs.data(), bufferLength))) {
    88         // When buffer consists of surrogate pairs, wkGetVerticalGlyphsForCharacters and CTFontGetGlyphsForCharacters
     89        // When buffer consists of surrogate pairs, CTFontGetVerticalGlyphsForCharacters and CTFontGetGlyphsForCharacters
    8990        // place the glyphs at indices corresponding to the first character of each pair.
    9091        unsigned glyphStep = bufferLength / length;
  • trunk/Source/WebCore/platform/graphics/mac/SimpleFontDataMac.mm

    r174858 r175972  
    3030#import "BlockExceptions.h"
    3131#import "Color.h"
     32#import "CoreTextSPI.h"
    3233#import "FloatRect.h"
    3334#import "Font.h"
     
    493494
    494495    ProviderInfo info = { characters, length, getCFStringAttributes(0, platformData().orientation()) };
    495     RetainPtr<CTLineRef> line = adoptCF(wkCreateCTLineWithUniCharProvider(&provideStringAndAttributes, 0, &info));
     496    RetainPtr<CTLineRef> line = adoptCF(CTLineCreateWithUniCharProvider(&provideStringAndAttributes, 0, &info));
    496497
    497498    CFArrayRef runArray = CTLineGetGlyphRuns(line.get());
  • trunk/Source/WebCore/platform/ios/WebCoreSystemInterfaceIOS.mm

    r175961 r175972  
    7272#endif
    7373
    74 WEBCORE_EXPORT bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[], size_t);
    75 WEBCORE_EXPORT CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
    76 
    77 WEBCORE_EXPORT CTTypesetterRef (*wkCreateCTTypesetterWithUniCharProviderAndOptions)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef options);
    78 
    7974#if !PLATFORM(IOS_SIMULATOR)
    8075WEBCORE_EXPORT CGContextRef (*wkIOSurfaceContextCreate)(IOSurfaceRef surface, unsigned width, unsigned height, CGColorSpaceRef colorSpace);
  • trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h

    r175961 r175972  
    227227extern CFHTTPMessageRef (*wkCopyCONNECTProxyResponse)(CFReadStreamRef, CFURLRef responseURL, CFStringRef proxyHost, CFNumberRef proxyPort);
    228228
    229 extern bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[], size_t);
    230 
    231229extern BOOL (*wkUseSharedMediaUI)();
    232230
     
    234232extern void* wkGetHyphenationLocationBeforeIndex;
    235233#endif
    236 
    237 extern CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
    238 
    239 extern CTTypesetterRef (*wkCreateCTTypesetterWithUniCharProviderAndOptions)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef options);
    240234
    241235#if PLATFORM(COCOA) && USE(CA) && !PLATFORM(IOS_SIMULATOR)
  • trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm

    r175961 r175972  
    105105#endif
    106106
    107 bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[], size_t);
    108 
    109107void* wkGetHyphenationLocationBeforeIndex;
    110 
    111 CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
    112 
    113 CTTypesetterRef (*wkCreateCTTypesetterWithUniCharProviderAndOptions)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef options);
    114108
    115109CGContextRef (*wkIOSurfaceContextCreate)(IOSurfaceRef surface, unsigned width, unsigned height, CGColorSpaceRef colorSpace);
  • trunk/Source/WebCore/platform/spi/cocoa/CoreTextSPI.h

    r175971 r175972  
    5151CTTypesetterRef CTTypesetterCreateWithUniCharProviderAndOptions(CTUniCharProviderCallback provide, CTUniCharDisposeCallback dispose, void* refCon, CFDictionaryRef options);
    5252bool CTFontTransformGlyphs(CTFontRef, CGGlyph glyphs[], CGSize advances[], CFIndex count, CTFontTransformOptions);
     53bool CTFontGetVerticalGlyphsForCharacters(CTFontRef, const UniChar characters[], CGGlyph glyphs[], CFIndex count);
    5354
    5455}
  • trunk/Source/WebKit/mac/ChangeLog

    r175962 r175972  
     12014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI
     4        https://bugs.webkit.org/show_bug.cgi?id=138623
     5
     6        Reviewed by Geoff Garen.
     7
     8        * WebCoreSupport/WebSystemInterface.mm:
     9        (InitWebCoreSystemInterface):
     10        * WebKit.order:
     11
    1122014-11-11  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm

    r175961 r175972  
    121121#endif
    122122
    123     INIT(GetVerticalGlyphsForCharacters);
    124123#if PLATFORM(IOS)
    125124    INIT(ExecutableWasLinkedOnOrAfterIOSVersion);
     
    133132#endif
    134133
    135     INIT(CreateCTLineWithUniCharProvider);
    136 
    137134#if !PLATFORM(IOS_SIMULATOR)
    138135    INIT(IOSurfaceContextCreate);
    139136    INIT(IOSurfaceContextCreateImage);
    140137#endif
    141     INIT(CreateCTTypesetterWithUniCharProviderAndOptions);
    142138#if !PLATFORM(IOS)
    143139    INIT(RecommendedScrollerStyle);
  • trunk/Source/WebKit/mac/WebKit.order

    r175961 r175972  
    734734__ZN20WebFrameLoaderClient38dispatchDidLoadResourceFromMemoryCacheEPN7WebCore14DocumentLoaderERKNS0_15ResourceRequestERKNS0_16ResourceResponseEi
    735735-[WebFrame(WebInternal) _characterRangeAtPoint:]
    736 _WKCreateCTTypesetterWithUniCharProviderAndOptions
    737736-[WebView(WebViewEditing) selectedDOMRange]
    738737-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]
     
    15311530__Z4coreP14WebHistoryItem
    15321531-[WebBackForwardList goToItem:]
    1533 _WKCreateCTLineWithUniCharProvider
    15341532-[WebInspector show:]
    15351533-[WebInspector showWindow]
     
    23142312-[WebFrame(WebPrivate) _selectedNSRange]
    23152313-[WebFrameView _pageHorizontally:]
    2316 _WKGetVerticalGlyphsForCharacters
    2317 _CTFontGetVerticalGlyphsForCharacters
    23182314__ZThn8_N15WebEditorClient17getGuessesForWordERKN3WTF6StringES3_RNS0_6VectorIS1_Lm0ENS0_15CrashOnOverflowEEE
    23192315__ZN15WebEditorClient17getGuessesForWordERKN3WTF6StringES3_RNS0_6VectorIS1_Lm0ENS0_15CrashOnOverflowEEE
  • trunk/Source/WebKit2/ChangeLog

    r175969 r175972  
     12014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI
     4        https://bugs.webkit.org/show_bug.cgi?id=138623
     5
     6        Reviewed by Geoff Garen.
     7
     8        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
     9        (InitWebCoreSystemInterface):
     10        * mac/WebKit2.order:
     11
    1122014-11-11  Timothy Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm

    r175961 r175972  
    5050        INIT(CopyNSURLResponseStatusLine);
    5151        INIT(CopyNSURLResponseCertificateChain);
    52         INIT(CreateCTLineWithUniCharProvider);
    5352#if !PLATFORM(IOS)
    5453        INIT(DrawBezeledTextArea);
     
    6261        INIT(GetFontInLanguageForRange);
    6362#endif
    64         INIT(GetVerticalGlyphsForCharacters);
    6563        INIT(GetHTTPRequestPriority);
    6664        INIT(GetNSURLResponseLastModifiedDate);
     
    129127        INIT(IOSurfaceContextCreateImage);
    130128#endif // !PLATFORM(IOS_SIMULATOR)
    131         INIT(CreateCTTypesetterWithUniCharProviderAndOptions);
    132129#if !PLATFORM(IOS)
    133130        INIT(RecommendedScrollerStyle);
  • trunk/Source/WebKit2/mac/WebKit2.order

    r175961 r175972  
    945945__ZNK6WebKit12WebPageProxy12canGoForwardEv
    946946__ZN6WebKit18WebBackForwardList11forwardItemEv
    947 _WKCreateCTLineWithUniCharProvider
    948 _WKCreateCTTypesetterWithUniCharProviderAndOptions
    949947_WKSetCGFontRenderingMode
    950948-[WKView(Private) updateLayer]
     
    91429140__ZN6WebKit12WebPageProxy9takeFocusEj
    91439141__ZN6WebKit11WebUIClient9takeFocusEPNS_12WebPageProxyEj
    9144 _WKGetVerticalGlyphsForCharacters
    9145 _CTFontGetVerticalGlyphsForCharacters
    91469142__ZN6WebKit15WebChromeClient19customHighlightRectEPN7WebCore4NodeERKN3WTF12AtomicStringERKNS1_9FloatRectE
    91479143__ZN6WebKit15WebChromeClient20paintCustomHighlightEPN7WebCore4NodeERKN3WTF12AtomicStringERKNS1_9FloatRectESA_bb
Note: See TracChangeset for help on using the changeset viewer.