Changeset 91935 in webkit
- Timestamp:
- Jul 28, 2011 9:33:33 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r91931 r91935 1 2011-07-28 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds 4 5 Reviewed by Darin Adler. 6 7 * WebCore.exp.in: Exported wkGetVerticalGlyphsForCharacters. 8 * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: 9 (WebCore::GlyphPage::fill): Use wkGetVerticalGlyphsForCharacters. If it returns false, proceed 10 with the existing, slower method of getting vertical glyphs. 11 * platform/mac/WebCoreSystemInterface.h: 12 * platform/mac/WebCoreSystemInterface.mm: 13 1 14 2011-07-28 Brady Eidson <beidson@apple.com> 2 15 -
trunk/Source/WebCore/WebCore.exp.in
r91931 r91935 1385 1385 _wkGetPreferredExtensionForMIMEType 1386 1386 _wkGetUserToBaseCTM 1387 _wkGetVerticalGlyphsForCharacters 1387 1388 _wkGetWheelEventDeltas 1388 1389 _wkHTTPCookiesForURL -
trunk/Source/WebCore/platform/graphics/mac/GlyphPageTreeNodeMac.cpp
r85501 r91935 54 54 bool haveGlyphs = false; 55 55 56 Vector<CGGlyph, 512> glyphs(bufferLength); 56 57 if (!shouldUseCoreText(buffer, bufferLength, fontData)) { 57 Vector<CGGlyph, 512> glyphs(bufferLength);58 58 wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength); 59 for (unsigned i = 0; i < length; ++i) { 60 if (!glyphs[i]) 61 setGlyphDataForIndex(offset + i, 0, 0); 62 else { 63 setGlyphDataForIndex(offset + i, glyphs[i], fontData); 64 haveGlyphs = true; 65 } 66 } 67 } else if (wkGetVerticalGlyphsForCharacters(fontData->platformData().ctFont(), buffer, glyphs.data(), bufferLength)) { 59 68 for (unsigned i = 0; i < length; ++i) { 60 69 if (!glyphs[i]) -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r91616 r91935 47 47 typedef struct _CFURLResponse *CFURLResponseRef; 48 48 typedef const struct _CFURLRequest *CFURLRequestRef; 49 typedef const struct __CTFont * CTFontRef; 49 50 typedef const struct __CTLine * CTLineRef; 50 51 typedef const struct __CTTypesetter * CTTypesetterRef; … … 222 223 223 224 extern void (*wkGetGlyphsForCharacters)(CGFontRef, const UniChar[], CGGlyph[], size_t); 225 extern bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[], size_t); 224 226 225 227 extern BOOL (*wkUseSharedMediaUI)(); -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r91616 r91935 118 118 119 119 void (*wkGetGlyphsForCharacters)(CGFontRef, const UniChar[], CGGlyph[], size_t); 120 bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[], size_t); 120 121 121 122 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) -
trunk/Source/WebKit/mac/ChangeLog
r91931 r91935 1 2011-07-28 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds 4 5 Reviewed by Darin Adler. 6 7 * WebCoreSupport/WebSystemInterface.mm: 8 (InitWebCoreSystemInterface): Initialize wkGetVerticalGlyphsForCharacters. 9 1 10 2011-07-28 Brady Eidson <beidson@apple.com> 2 11 -
trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r91154 r91935 110 110 111 111 INIT(GetGlyphsForCharacters); 112 INIT(GetVerticalGlyphsForCharacters); 112 113 113 114 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) -
trunk/Source/WebKit2/ChangeLog
r91931 r91935 1 2011-07-28 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds 4 5 Reviewed by Darin Adler. 6 7 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: 8 (InitWebCoreSystemInterface): Initialize wkGetVerticalGlyphsForCharacters. 9 1 10 2011-07-28 Brady Eidson <beidson@apple.com> 2 11 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r91616 r91935 57 57 INIT(GetGlyphTransformedAdvances); 58 58 INIT(GetGlyphsForCharacters); 59 INIT(GetVerticalGlyphsForCharacters); 59 60 INIT(GetHTTPPipeliningPriority); 60 61 INIT(GetMIMETypeForExtension); -
trunk/WebKitLibraries/ChangeLog
r91616 r91935 1 2011-07-28 Dan Bernstein <mitz@apple.com> 2 3 WebKitSystemInterface support for 4 <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds 5 6 Reviewed by Darin Adler. 7 8 * WebKitSystemInterface.h: Added WKGetVerticalGlyphsForCharacters(). 9 * libWebKitSystemInterfaceLeopard.a: 10 * libWebKitSystemInterfaceLion.a: 11 * libWebKitSystemInterfaceSnowLeopard.a: 12 1 13 2011-07-22 Jessie Berlin <jberlin@apple.com> 2 14 -
trunk/WebKitLibraries/WebKitSystemInterface.h
r91616 r91935 154 154 155 155 void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size_t); 156 bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph[], size_t); 156 157 157 158 CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
Note: See TracChangeset
for help on using the changeset viewer.