Title: [181870] trunk/Source/WebCore
Revision
181870
Author
[email protected]
Date
2015-03-23 14:32:38 -0700 (Mon, 23 Mar 2015)

Log Message

kCTFontSystemFontType is deprecated in CoreText
https://bugs.webkit.org/show_bug.cgi?id=142981
<rdar://problem/20261171>

Reviewed by Beth Dakin.

Update to the non-deprecated version.

* rendering/RenderThemeIOS.mm: kCTFontSystemFontType -> kCTFontUIFontSystem
(WebCore::RenderThemeIOS::updateCachedSystemFontDescription):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (181869 => 181870)


--- trunk/Source/WebCore/ChangeLog	2015-03-23 20:52:28 UTC (rev 181869)
+++ trunk/Source/WebCore/ChangeLog	2015-03-23 21:32:38 UTC (rev 181870)
@@ -1,3 +1,16 @@
+2015-03-23  Dean Jackson  <[email protected]>
+
+        kCTFontSystemFontType is deprecated in CoreText
+        https://bugs.webkit.org/show_bug.cgi?id=142981
+        <rdar://problem/20261171>
+
+        Reviewed by Beth Dakin.
+
+        Update to the non-deprecated version.
+
+        * rendering/RenderThemeIOS.mm: kCTFontSystemFontType -> kCTFontUIFontSystem
+        (WebCore::RenderThemeIOS::updateCachedSystemFontDescription):
+
 2015-03-23  Eric Carlson  <[email protected]>
 
         [Mac] Enable fullscreen for MSE-based videos

Modified: trunk/Source/WebCore/rendering/RenderThemeIOS.mm (181869 => 181870)


--- trunk/Source/WebCore/rendering/RenderThemeIOS.mm	2015-03-23 20:52:28 UTC (rev 181869)
+++ trunk/Source/WebCore/rendering/RenderThemeIOS.mm	2015-03-23 21:32:38 UTC (rev 181870)
@@ -1262,15 +1262,7 @@
 
     default:
         textStyle = kCTFontDescriptorTextStyleEmphasized;
-#if COMPILER(CLANG)
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-#endif
-        // <rdar://problem/20261171> kCTFontSystemFontType is deprecated in CoreText
-        fontDescriptor = adoptCF(CTFontDescriptorCreateForUIType(kCTFontSystemFontType, 0, nullptr));
-#if COMPILER(CLANG)
-#pragma clang diagnostic pop
-#endif
+        fontDescriptor = adoptCF(CTFontDescriptorCreateForUIType(kCTFontUIFontSystem, 0, nullptr));
     }
 
     ASSERT(fontDescriptor);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to