Tiger build fix.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2008 04:13:31 +0000 (04:13 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2008 04:13:31 +0000 (04:13 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29287 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/graphics/mac/FontCustomPlatformData.cpp

index 4ecaae09cdec089eaf53e9abbd2db82c2b612e04..f20f106654ee502399f4c697826f587f68ef1462 100644 (file)
@@ -1,3 +1,11 @@
+2008-01-07  Mark Rowe  <mrowe@apple.com>
+
+        Tiger build fix.
+
+        * platform/graphics/mac/FontCustomPlatformData.cpp:
+        (WebCore::createFontCustomPlatformData): Only include this code on Leopard.
+        It's not needed on Tiger, and breaks the build.
+
 2008-01-07  Antti Koivisto  <antti@apple.com>
 
         Reviewed by Steve.
index 3c22288c78436f47f5a8e5d0a801ed088ef65a8f..dc15a99fb15da415cfcacce08c881eb24495cc8e 100644 (file)
@@ -64,10 +64,12 @@ FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer* buffer)
     }
     
     CGFontRef cgFontRef = CGFontCreateWithPlatformFont(&fontRef);
+#ifndef BUILDING_ON_TIGER
     if (!CGFontGetNumberOfGlyphs(cgFontRef)) {
         CFRelease(cgFontRef);
         cgFontRef = 0;
     }
+#endif
     if (!cgFontRef) {
         ATSFontDeactivate(containerRef, NULL, kATSOptionFlagsDefault);
         return 0;