Title: [265512] trunk/Source/WebCore/PAL
Revision
265512
Author
mmaxfi...@apple.com
Date
2020-08-11 13:28:18 -0700 (Tue, 11 Aug 2020)

Log Message

Fix Apple internal Mojave builds
https://bugs.webkit.org/show_bug.cgi?id=215389

Unreviewed build fix.

* pal/spi/cocoa/CoreTextSPI.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/ChangeLog (265511 => 265512)


--- trunk/Source/WebCore/PAL/ChangeLog	2020-08-11 20:27:15 UTC (rev 265511)
+++ trunk/Source/WebCore/PAL/ChangeLog	2020-08-11 20:28:18 UTC (rev 265512)
@@ -1,3 +1,12 @@
+2020-08-11  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+        Fix Apple internal Mojave builds
+        https://bugs.webkit.org/show_bug.cgi?id=215389
+
+        Unreviewed build fix.
+
+        * pal/spi/cocoa/CoreTextSPI.h:
+
 2020-08-10  Myles C. Maxfield  <mmaxfi...@apple.com>
 
         [Cocoa] Migrate from CTFontTransformGlyphsWithLanguage() to CTFontShapeGlyphs()

Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/CoreTextSPI.h (265511 => 265512)


--- trunk/Source/WebCore/PAL/pal/spi/cocoa/CoreTextSPI.h	2020-08-11 20:27:15 UTC (rev 265511)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/CoreTextSPI.h	2020-08-11 20:28:18 UTC (rev 265512)
@@ -98,7 +98,10 @@
 extern const CFStringRef kCTFontCSSFamilySystemUI;
 
 bool CTFontTransformGlyphs(CTFontRef, CGGlyph glyphs[], CGSize advances[], CFIndex count, CTFontTransformOptions);
+#if USE(CTFONTSHAPEGLYPHS)
+// CTFontShapeOptions isn't defined on Mojave.
 CGSize CTFontShapeGlyphs(CTFontRef, CGGlyph glyphs[], CGSize advances[], CGPoint origins[], CFIndex indexes[], const UniChar chars[], CFIndex count, CTFontShapeOptions, CFStringRef language, void (^handler)(CFRange, CGGlyph**, CGSize**, CGPoint**, CFIndex**));
+#endif
 
 CGSize CTRunGetInitialAdvance(CTRunRef);
 CTLineRef CTLineCreateWithUniCharProvider(CTUniCharProviderCallback, CTUniCharDisposeCallback, void* refCon);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to