Title: [274023] trunk/Source/WebCore/PAL
Revision
274023
Author
pvol...@apple.com
Date
2021-03-05 18:07:58 -0800 (Fri, 05 Mar 2021)

Log Message

[Win] Fix compile error
https://bugs.webkit.org/show_bug.cgi?id=222802
<rdar://problem/75052309>

Reviewed by Dean Jackson.

Declare CTFontTransformOptions if associated header file has not been included.

* pal/spi/win/CoreTextSPIWin.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/ChangeLog (274022 => 274023)


--- trunk/Source/WebCore/PAL/ChangeLog	2021-03-06 01:23:53 UTC (rev 274022)
+++ trunk/Source/WebCore/PAL/ChangeLog	2021-03-06 02:07:58 UTC (rev 274023)
@@ -1,3 +1,15 @@
+2021-03-05  Per Arne Vollan  <pvol...@apple.com>
+
+        [Win] Fix compile error
+        https://bugs.webkit.org/show_bug.cgi?id=222802
+        <rdar://problem/75052309>
+
+        Reviewed by Dean Jackson.
+
+        Declare CTFontTransformOptions if associated header file has not been included.
+
+        * pal/spi/win/CoreTextSPIWin.h:
+
 2021-03-05  Alex Christensen  <achristen...@webkit.org>
 
         Fix my iOS Simulator build.

Modified: trunk/Source/WebCore/PAL/pal/spi/win/CoreTextSPIWin.h (274022 => 274023)


--- trunk/Source/WebCore/PAL/pal/spi/win/CoreTextSPIWin.h	2021-03-06 01:23:53 UTC (rev 274022)
+++ trunk/Source/WebCore/PAL/pal/spi/win/CoreTextSPIWin.h	2021-03-06 02:07:58 UTC (rev 274023)
@@ -54,6 +54,13 @@
 CT_EXPORT const CFStringRef kCTFontURLAttribute;
 CT_EXPORT const CFStringRef kCTFontReferenceURLAttribute;
 
+#ifndef __CTFONTPRIV__
+typedef CF_OPTIONS(uint32_t, CTFontTransformOptions) {
+    kCTFontTransformApplyShaping = (1 << 0),
+    kCTFontTransformApplyPositioning = (1 << 1)
+};
+#endif
+
 // These enums are defined in CTFont.h. To avoid redefinition, only define them here if CTFont.h has not been included. 
 #ifndef __CTFONT__
 typedef CF_OPTIONS(uint32_t, CTFontSymbolicTraits) {
@@ -81,11 +88,6 @@
     kCTFontTableVhea = 'vhea',
 };
 
-typedef CF_OPTIONS(uint32_t, CTFontTransformOptions) {
-    kCTFontTransformApplyShaping = (1 << 0),
-    kCTFontTransformApplyPositioning = (1 << 1)
-};
-
 enum {
     kLowerCaseType = 37,
     kUpperCaseType = 38,
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to