Changeset 175960 in webkit
- Timestamp:
- Nov 11, 2014, 10:59:53 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 15 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/WebCore.exp.in (modified) (1 diff)
-
WebCore/WebCore.order (modified) (1 diff)
-
WebCore/platform/graphics/SimpleFontData.cpp (modified) (2 diffs)
-
WebCore/platform/graphics/SimpleFontData.h (modified) (1 diff)
-
WebCore/platform/ios/WebCoreSystemInterfaceIOS.mm (modified) (1 diff)
-
WebCore/platform/mac/WebCoreSystemInterface.h (modified) (1 diff)
-
WebCore/platform/mac/WebCoreSystemInterface.mm (modified) (1 diff)
-
WebCore/platform/spi/cocoa/CoreTextSPI.h (modified) (1 diff)
-
WebKit/mac/ChangeLog (modified) (1 diff)
-
WebKit/mac/WebCoreSupport/WebSystemInterface.mm (modified) (1 diff)
-
WebKit/mac/WebKit.order (modified) (1 diff)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm (modified) (1 diff)
-
WebKit2/mac/WebKit2.order (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r175953 r175960 1 2014-11-11 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Move CTFontTransformGlyphs out from WKSI 4 https://bugs.webkit.org/show_bug.cgi?id=138599 5 6 Reviewed by Simon Fraser. 7 8 No new tests because there is no behavior change. 9 10 * WebCore.exp.in: 11 * WebCore.order: 12 * platform/graphics/SimpleFontData.cpp: 13 (WebCore::SimpleFontData::applyTransforms): 14 * platform/graphics/SimpleFontData.h: 15 * platform/ios/WebCoreSystemInterfaceIOS.mm: 16 * platform/mac/WebCoreSystemInterface.h: 17 * platform/mac/WebCoreSystemInterface.mm: 18 * platform/spi/cocoa/CoreTextSPI.h: 19 1 20 2014-11-11 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 21 -
trunk/Source/WebCore/WebCore.exp.in
r175842 r175960 2882 2882 __ZN7WebCore28getDefaultWebCryptoMasterKeyERN3WTF6VectorIhLm0ENS0_15CrashOnOverflowEEE 2883 2883 __ZTVN7WebCore16DiskCacheMonitorE 2884 _wkCTFontTransformGlyphs2885 2884 #endif 2886 2885 -
trunk/Source/WebCore/WebCore.order
r174995 r175960 30592 30592 _wkGetVerticalGlyphsForCharacters 30593 30593 _wkCreateCTLineWithUniCharProvider 30594 _wkCTFontTransformGlyphs30595 30594 _wkCreateCTTypesetterWithUniCharProviderAndOptions 30596 30595 _wkIOSurfaceContextCreate -
trunk/Source/WebCore/platform/graphics/SimpleFontData.cpp
r174858 r175960 31 31 #include "SimpleFontData.h" 32 32 33 #if PLATFORM(IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 1080) 34 #include "CoreTextSPI.h" 35 #endif 33 36 #include "Font.h" 34 37 #include "FontCache.h" … … 310 313 } 311 314 315 bool SimpleFontData::applyTransforms(GlyphBufferGlyph* glyphs, GlyphBufferAdvance* advances, size_t glyphCount, TypesettingFeatures typesettingFeatures) const 316 { 317 // We need to handle transforms on SVG fonts internally, since they are rendered internally. 318 ASSERT(!isSVGFont()); 319 #if PLATFORM(IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 1080) 320 CTFontTransformOptions options = (typesettingFeatures & Kerning ? kCTFontTransformApplyPositioning : 0) | (typesettingFeatures & Ligatures ? kCTFontTransformApplyShaping : 0); 321 return CTFontTransformGlyphs(m_platformData.ctFont(), glyphs, reinterpret_cast<CGSize*>(advances), glyphCount, options); 322 #else 323 UNUSED_PARAM(glyphs); 324 UNUSED_PARAM(advances); 325 UNUSED_PARAM(glyphCount); 326 UNUSED_PARAM(typesettingFeatures); 327 return false; 328 #endif 329 } 330 312 331 } // namespace WebCore -
trunk/Source/WebCore/platform/graphics/SimpleFontData.h
r174858 r175960 217 217 #endif 218 218 219 bool applyTransforms(GlyphBufferGlyph* glyphs, GlyphBufferAdvance* advances, size_t glyphCount, TypesettingFeatures typesettingFeatures) const 220 { 221 // We need to handle transforms on SVG fonts internally, since they are rendered internally. 222 ASSERT(!isSVGFont()); 223 #if PLATFORM(IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 1080) 224 wkCTFontTransformOptions options = (typesettingFeatures & Kerning ? wkCTFontTransformApplyPositioning : 0) | (typesettingFeatures & Ligatures ? wkCTFontTransformApplyShaping : 0); 225 return wkCTFontTransformGlyphs(m_platformData.ctFont(), glyphs, reinterpret_cast<CGSize*>(advances), glyphCount, options); 226 #else 227 UNUSED_PARAM(glyphs); 228 UNUSED_PARAM(advances); 229 UNUSED_PARAM(glyphCount); 230 UNUSED_PARAM(typesettingFeatures); 231 return false; 232 #endif 233 } 219 bool applyTransforms(GlyphBufferGlyph*, GlyphBufferAdvance*, size_t glyphCount, TypesettingFeatures) const; 234 220 235 221 #if PLATFORM(WIN) -
trunk/Source/WebCore/platform/ios/WebCoreSystemInterfaceIOS.mm
r175750 r175960 74 74 WEBCORE_EXPORT bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[], size_t); 75 75 WEBCORE_EXPORT CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*); 76 WEBCORE_EXPORT bool (*wkCTFontTransformGlyphs)(CTFontRef font, CGGlyph glyphs[], CGSize advances[], CFIndex count, wkCTFontTransformOptions options);77 76 78 77 WEBCORE_EXPORT CGSize (*wkCTRunGetInitialAdvance)(CTRunRef); -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r175814 r175960 237 237 extern CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*); 238 238 239 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090240 enum {241 wkCTFontTransformApplyShaping = (1 << 0),242 wkCTFontTransformApplyPositioning = (1 << 1)243 };244 245 typedef int wkCTFontTransformOptions;246 247 extern bool (*wkCTFontTransformGlyphs)(CTFontRef font, CGGlyph glyphs[], CGSize advances[], CFIndex count, wkCTFontTransformOptions options);248 #endif249 250 239 extern CTTypesetterRef (*wkCreateCTTypesetterWithUniCharProviderAndOptions)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef options); 251 240 -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r175814 r175960 110 110 111 111 CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*); 112 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090113 bool (*wkCTFontTransformGlyphs)(CTFontRef font, CGGlyph glyphs[], CGSize advances[], CFIndex count, wkCTFontTransformOptions options);114 #endif115 112 116 113 CGSize (*wkCTRunGetInitialAdvance)(CTRunRef); -
trunk/Source/WebCore/platform/spi/cocoa/CoreTextSPI.h
r175379 r175960 30 30 31 31 #if USE(APPLE_INTERNAL_SDK) 32 #include <CoreText/CTFontPriv.h> 32 33 #include <CoreText/CTLinePriv.h> 33 34 #endif 35 36 extern "C" { 34 37 35 38 typedef const UniChar* (*CTUniCharProviderCallback)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void* refCon); 36 39 typedef void (*CTUniCharDisposeCallback)(const UniChar* chars, void* refCon); 37 40 38 extern "C" { 41 #if !USE(APPLE_INTERNAL_SDK) 42 typedef CF_OPTIONS(uint32_t, CTFontTransformOptions) 43 { 44 kCTFontTransformApplyShaping = (1 << 0), 45 kCTFontTransformApplyPositioning = (1 << 1) 46 }; 47 #endif 39 48 40 49 CGSize CTRunGetInitialAdvance(CTRunRef run); 41 50 CTLineRef CTLineCreateWithUniCharProvider(CTUniCharProviderCallback provide, CTUniCharDisposeCallback dispose, void* refCon); 42 51 CTTypesetterRef CTTypesetterCreateWithUniCharProviderAndOptions(CTUniCharProviderCallback provide, CTUniCharDisposeCallback dispose, void* refCon, CFDictionaryRef options); 52 bool CTFontTransformGlyphs(CTFontRef, CGGlyph glyphs[], CGSize advances[], CFIndex count, CTFontTransformOptions); 43 53 44 54 } -
trunk/Source/WebKit/mac/ChangeLog
r175956 r175960 1 2014-11-11 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Move CTFontTransformGlyphs out from WKSI 4 https://bugs.webkit.org/show_bug.cgi?id=138599 5 6 Reviewed by Simon Fraser. 7 8 * WebCoreSupport/WebSystemInterface.mm: 9 (InitWebCoreSystemInterface): 10 * WebKit.order: 11 1 12 2014-11-11 Dan Bernstein <mitz@apple.com> 2 13 -
trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r175814 r175960 55 55 INIT(CGContextDrawsWithCorrectShadowOffsets); 56 56 #endif 57 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109058 INIT(CTFontTransformGlyphs);59 #endif60 57 INIT(CopyCONNECTProxyResponse); 61 58 INIT(CopyNSURLResponseStatusLine); -
trunk/Source/WebKit/mac/WebKit.order
r174052 r175960 605 605 _WKSetUpFontCache 606 606 _WKGetGlyphTransformedAdvances 607 _WKCTFontTransformGlyphs608 607 __ZN20WebFrameLoaderClient17dispatchDidLayoutEj 609 608 __ZN20WebFrameLoaderClient21dispatchDidFinishLoadEv -
trunk/Source/WebKit2/ChangeLog
r175851 r175960 1 2014-11-11 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Move CTFontTransformGlyphs out from WKSI 4 https://bugs.webkit.org/show_bug.cgi?id=138599 5 6 Reviewed by Simon Fraser. 7 8 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: 9 (InitWebCoreSystemInterface): 10 * mac/WebKit2.order: 11 1 12 2014-11-10 Simon Fraser <simon.fraser@apple.com> 2 13 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r175814 r175960 47 47 INIT(CGContextDrawsWithCorrectShadowOffsets); 48 48 #endif 49 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109050 INIT(CTFontTransformGlyphs);51 #endif52 49 INIT(CopyCONNECTProxyResponse); 53 50 INIT(CopyNSURLResponseStatusLine); -
trunk/Source/WebKit2/mac/WebKit2.order
r174052 r175960 829 829 __ZN6WebKit15WebIconDatabase15imageForPageURLERKN3WTF6StringERKN7WebCore7IntSizeE 830 830 _WKGetGlyphTransformedAdvances 831 _WKCTFontTransformGlyphs832 831 _WKURLCreateWithCFURL 833 832 _WKUInt64Create
Note:
See TracChangeset
for help on using the changeset viewer.