Changeset 177726 in webkit
- Timestamp:
- Dec 24, 2014 4:21:52 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r177720 r177726 1 2014-12-24 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] WebCoreSystemInterface.h declares two unused symbols 4 https://bugs.webkit.org/show_bug.cgi?id=139937 5 6 Reviewed by Tim Horton. 7 8 * platform/graphics/FontPlatformData.h: Removed unused typedefs. 9 10 * platform/graphics/mac/FontCustomPlatformData.cpp: 11 (WebCore::createFontCustomPlatformData): Stop passing always-zero containerRef parameter to 12 FontCustomPlatformData constructor. 13 14 * platform/graphics/mac/FontCustomPlatformData.h: Removed unused typedefs. 15 (WebCore::FontCustomPlatformData::FontCustomPlatformData): Removed unused container 16 parameter and m_atsContainer member variable. 17 18 * platform/mac/WebCoreSystemInterface.h: Removed unused typedefs and symbols. 19 1 20 2014-12-23 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebCore/platform/graphics/FontPlatformData.h
r177689 r177726 52 52 53 53 typedef const struct __CTFont* CTFontRef; 54 typedef UInt32 FMFont;55 typedef FMFont ATSUFontID;56 typedef UInt32 ATSFontRef;57 54 58 55 #endif -
trunk/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp
r162827 r177726 39 39 std::unique_ptr<FontCustomPlatformData> createFontCustomPlatformData(SharedBuffer& buffer) 40 40 { 41 ATSFontContainerRef containerRef = 0;42 43 41 RetainPtr<CFDataRef> bufferData = buffer.createCFData(); 44 42 RetainPtr<CGDataProviderRef> dataProvider = adoptCF(CGDataProviderCreateWithCFData(bufferData.get())); … … 48 46 return nullptr; 49 47 50 return std::make_unique<FontCustomPlatformData>(c ontainerRef, cgFontRef.get());48 return std::make_unique<FontCustomPlatformData>(cgFontRef.get()); 51 49 } 52 50 -
trunk/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.h
r165676 r177726 31 31 32 32 typedef struct CGFont* CGFontRef; 33 typedef UInt32 ATSFontContainerRef;34 typedef UInt32 ATSFontRef;35 33 36 34 namespace WebCore { … … 42 40 WTF_MAKE_NONCOPYABLE(FontCustomPlatformData); 43 41 public: 44 FontCustomPlatformData(ATSFontContainerRef container, CGFontRef cgFont) 45 : m_atsContainer(container) 46 , m_cgFont(cgFont) 42 explicit FontCustomPlatformData(CGFontRef cgFont) 43 : m_cgFont(cgFont) 47 44 { 48 45 } … … 54 51 static bool supportsFormat(const String&); 55 52 56 ATSFontContainerRef m_atsContainer;57 53 RetainPtr<CGFontRef> m_cgFont; 58 54 }; -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r176164 r177726 60 60 typedef struct _NSRange NSRange; 61 61 typedef double NSTimeInterval; 62 63 typedef UInt32 FMFont;64 typedef FMFont ATSUFontID;65 typedef UInt16 ATSGlyphRef;66 62 #endif 67 63 … … 158 154 #endif 159 155 #if !PLATFORM(IOS) 160 extern ATSUFontID (*wkGetNSFontATSUFontId)(NSFont*);161 156 extern double (*wkGetNSURLResponseCalculatedExpiration)(NSURLResponse *response); 162 157 #endif … … 223 218 extern CFHTTPMessageRef (*wkCopyCONNECTProxyResponse)(CFReadStreamRef, CFURLRef responseURL, CFStringRef proxyHost, CFNumberRef proxyPort); 224 219 225 extern BOOL (*wkUseSharedMediaUI)();226 227 220 #if !PLATFORM(IOS) 228 221 extern void* wkGetHyphenationLocationBeforeIndex;
Note: See TracChangeset
for help on using the changeset viewer.