Title: [247585] branches/safari-608-branch/Source
Revision
247585
Author
kocsen_ch...@apple.com
Date
2019-07-18 13:23:27 -0700 (Thu, 18 Jul 2019)

Log Message

Cherry-pick r247465. rdar://problem/53229731

    New York font erroneously gets synthetic bold
    https://bugs.webkit.org/show_bug.cgi?id=199653

    Unreviewed watchOS build fix.

    Source/WebCore:

    * page/ProcessWarming.cpp:
    (WebCore::ProcessWarming::prewarmGlobally):
    * page/cocoa/MemoryReleaseCocoa.mm:
    (WebCore::platformReleaseMemory):
    * platform/graphics/FontCascadeDescription.cpp:
    * platform/graphics/FontDescription.h:
    * platform/graphics/cocoa/FontCacheCoreText.cpp:
    (WebCore::invalidateFontCache):
    (WebCore::lookupFallbackFont):
    * platform/graphics/cocoa/FontDescriptionCocoa.cpp:
    (WebCore::FontCascadeDescription::effectiveFamilyAt const):
    * platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp:
    (WebCore::FontFamilySpecificationCoreText::fontRanges const):
    * platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:

    Source/WTF:

    * wtf/Platform.h:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247465 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-608-branch/Source/WTF/ChangeLog (247584 => 247585)


--- branches/safari-608-branch/Source/WTF/ChangeLog	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WTF/ChangeLog	2019-07-18 20:23:27 UTC (rev 247585)
@@ -1,5 +1,46 @@
 2019-07-17  Kocsen Chung  <kocsen_ch...@apple.com>
 
+        Cherry-pick r247465. rdar://problem/53229731
+
+    New York font erroneously gets synthetic bold
+    https://bugs.webkit.org/show_bug.cgi?id=199653
+    
+    Unreviewed watchOS build fix.
+    
+    Source/WebCore:
+    
+    * page/ProcessWarming.cpp:
+    (WebCore::ProcessWarming::prewarmGlobally):
+    * page/cocoa/MemoryReleaseCocoa.mm:
+    (WebCore::platformReleaseMemory):
+    * platform/graphics/FontCascadeDescription.cpp:
+    * platform/graphics/FontDescription.h:
+    * platform/graphics/cocoa/FontCacheCoreText.cpp:
+    (WebCore::invalidateFontCache):
+    (WebCore::lookupFallbackFont):
+    * platform/graphics/cocoa/FontDescriptionCocoa.cpp:
+    (WebCore::FontCascadeDescription::effectiveFamilyAt const):
+    * platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp:
+    (WebCore::FontFamilySpecificationCoreText::fontRanges const):
+    * platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:
+    
+    Source/WTF:
+    
+    * wtf/Platform.h:
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-07-15  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+            New York font erroneously gets synthetic bold
+            https://bugs.webkit.org/show_bug.cgi?id=199653
+
+            Unreviewed watchOS build fix.
+
+            * wtf/Platform.h:
+
+2019-07-17  Kocsen Chung  <kocsen_ch...@apple.com>
+
         Cherry-pick r247461. rdar://problem/53229637
 
     Make WKURLSchemeTask thread safe.

Modified: branches/safari-608-branch/Source/WTF/wtf/Platform.h (247584 => 247585)


--- branches/safari-608-branch/Source/WTF/wtf/Platform.h	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WTF/wtf/Platform.h	2019-07-18 20:23:27 UTC (rev 247585)
@@ -1598,6 +1598,10 @@
 #define HAVE_SUBVIEWS_IVAR_SPI 1
 #endif
 
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000) || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 40000) || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 110000)
+#define USE_PLATFORM_SYSTEM_FALLBACK_LIST 1
+#endif
+
 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 60000) || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 130000)
 #define HAVE_DESIGN_SYSTEM_UI_FONTS 1
 #endif

Modified: branches/safari-608-branch/Source/WebCore/ChangeLog (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/ChangeLog	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/ChangeLog	2019-07-18 20:23:27 UTC (rev 247585)
@@ -1,5 +1,59 @@
 2019-07-17  Kocsen Chung  <kocsen_ch...@apple.com>
 
+        Cherry-pick r247465. rdar://problem/53229731
+
+    New York font erroneously gets synthetic bold
+    https://bugs.webkit.org/show_bug.cgi?id=199653
+    
+    Unreviewed watchOS build fix.
+    
+    Source/WebCore:
+    
+    * page/ProcessWarming.cpp:
+    (WebCore::ProcessWarming::prewarmGlobally):
+    * page/cocoa/MemoryReleaseCocoa.mm:
+    (WebCore::platformReleaseMemory):
+    * platform/graphics/FontCascadeDescription.cpp:
+    * platform/graphics/FontDescription.h:
+    * platform/graphics/cocoa/FontCacheCoreText.cpp:
+    (WebCore::invalidateFontCache):
+    (WebCore::lookupFallbackFont):
+    * platform/graphics/cocoa/FontDescriptionCocoa.cpp:
+    (WebCore::FontCascadeDescription::effectiveFamilyAt const):
+    * platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp:
+    (WebCore::FontFamilySpecificationCoreText::fontRanges const):
+    * platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:
+    
+    Source/WTF:
+    
+    * wtf/Platform.h:
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-07-15  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+            New York font erroneously gets synthetic bold
+            https://bugs.webkit.org/show_bug.cgi?id=199653
+
+            Unreviewed watchOS build fix.
+
+            * page/ProcessWarming.cpp:
+            (WebCore::ProcessWarming::prewarmGlobally):
+            * page/cocoa/MemoryReleaseCocoa.mm:
+            (WebCore::platformReleaseMemory):
+            * platform/graphics/FontCascadeDescription.cpp:
+            * platform/graphics/FontDescription.h:
+            * platform/graphics/cocoa/FontCacheCoreText.cpp:
+            (WebCore::invalidateFontCache):
+            (WebCore::lookupFallbackFont):
+            * platform/graphics/cocoa/FontDescriptionCocoa.cpp:
+            (WebCore::FontCascadeDescription::effectiveFamilyAt const):
+            * platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp:
+            (WebCore::FontFamilySpecificationCoreText::fontRanges const):
+            * platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:
+
+2019-07-17  Kocsen Chung  <kocsen_ch...@apple.com>
+
         Cherry-pick r247459. rdar://problem/53229552
 
     Crash under DisplayRefreshMonitorManager::displayWasUpdated()

Modified: branches/safari-608-branch/Source/WebCore/page/ProcessWarming.cpp (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/page/ProcessWarming.cpp	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/page/ProcessWarming.cpp	2019-07-18 20:23:27 UTC (rev 247585)
@@ -72,7 +72,7 @@
     // Prewarms JS VM.
     commonVM();
 
-#if USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#if USE(PLATFORM_SYSTEM_FALLBACK_LIST)
     // Cache system UI font fallbacks. Almost every web process needs these.
     // Initializing one size is sufficient to warm CoreText caches.
     FontCascadeDescription systemFontDescription;

Modified: branches/safari-608-branch/Source/WebCore/page/cocoa/MemoryReleaseCocoa.mm (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/page/cocoa/MemoryReleaseCocoa.mm	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/page/cocoa/MemoryReleaseCocoa.mm	2019-07-18 20:23:27 UTC (rev 247585)
@@ -44,7 +44,7 @@
 
 void platformReleaseMemory(Critical)
 {
-#if USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#if USE(PLATFORM_SYSTEM_FALLBACK_LIST)
     SystemFontDatabaseCoreText::singleton().clear();
 #endif
     clearFontFamilySpecificationCoreTextCache();

Modified: branches/safari-608-branch/Source/WebCore/platform/graphics/FontCascadeDescription.cpp (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/platform/graphics/FontCascadeDescription.cpp	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/platform/graphics/FontCascadeDescription.cpp	2019-07-18 20:23:27 UTC (rev 247585)
@@ -62,7 +62,7 @@
 {
 }
 
-#if !USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#if !USE(PLATFORM_SYSTEM_FALLBACK_LIST)
 
 unsigned FontCascadeDescription::effectiveFamilyCount() const
 {

Modified: branches/safari-608-branch/Source/WebCore/platform/graphics/FontDescription.h (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/platform/graphics/FontDescription.h	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/platform/graphics/FontDescription.h	2019-07-18 20:23:27 UTC (rev 247585)
@@ -31,8 +31,6 @@
 #include <unicode/uscript.h>
 #include <wtf/MathExtras.h>
 
-#define USE_PLATFORM_SYSTEM_FALLBACK_LIST ((PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300))
-
 namespace WebCore {
 
 using namespace WebKitFontFamilyNames;

Modified: branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp	2019-07-18 20:23:27 UTC (rev 247585)
@@ -1236,7 +1236,7 @@
         return;
     }
 
-#if USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#if USE(PLATFORM_SYSTEM_FALLBACK_LIST)
     SystemFontDatabaseCoreText::singleton().clear();
 #endif
     clearFontFamilySpecificationCoreTextCache();
@@ -1392,7 +1392,7 @@
 
     CFIndex coveredLength = 0;
     RetainPtr<CTFontRef> result;
-#if !USE_PLATFORM_SYSTEM_FALLBACK_LIST && (PLATFORM(MAC) || (PLATFORM(IOS_FAMILY) && TARGET_OS_IOS))
+#if !USE(PLATFORM_SYSTEM_FALLBACK_LIST) && (PLATFORM(MAC) || (PLATFORM(IOS_FAMILY) && TARGET_OS_IOS))
     result = adoptCF(CTFontCreatePhysicalFontForCharactersWithLanguage(font, characters, length, localeString.get(), &coveredLength));
 #else
     result = adoptCF(CTFontCreateForCharactersWithLanguage(font, characters, length, localeString.get(), &coveredLength));

Modified: branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontDescriptionCocoa.cpp (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontDescriptionCocoa.cpp	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontDescriptionCocoa.cpp	2019-07-18 20:23:27 UTC (rev 247585)
@@ -32,7 +32,7 @@
 
 namespace WebCore {
 
-#if USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#if USE(PLATFORM_SYSTEM_FALLBACK_LIST)
 
 #if PLATFORM(IOS_FAMILY)
 
@@ -121,7 +121,7 @@
 FontFamilySpecification FontCascadeDescription::effectiveFamilyAt(unsigned index) const
 {
     // The special cases in this function need to match the behavior in FontCacheIOS.mm and FontCacheMac.mm. On systems
-    // where USE_PLATFORM_SYSTEM_FALLBACK_LIST is set to true, this code is used for regular (element style) lookups,
+    // where USE(PLATFORM_SYSTEM_FALLBACK_LIST) is set to true, this code is used for regular (element style) lookups,
     // and the code in FontDescriptionCocoa.cpp is used when src:local(special-cased-name) is specified inside an
     // @font-face block.
     // FIXME: Currently, an @font-face block corresponds to a single item in the font-family: fallback list, which
@@ -144,7 +144,7 @@
     return nullAtom();
 }
 
-#endif // USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#endif // USE(PLATFORM_SYSTEM_FALLBACK_LIST)
 
 static String computeSpecializedChineseLocale()
 {

Modified: branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp	2019-07-18 20:23:27 UTC (rev 247585)
@@ -103,7 +103,7 @@
         auto font = adoptCF(CTFontCreateWithFontDescriptor(m_fontDescriptor.get(), size, nullptr));
 
         auto fontForSynthesisComputation = font;
-#if USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#if USE(PLATFORM_SYSTEM_FALLBACK_LIST)
         if (auto physicalFont = adoptCF(CTFontCopyPhysicalFont(font.get())))
             fontForSynthesisComputation = physicalFont;
 #endif

Modified: branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp (247584 => 247585)


--- branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp	2019-07-18 20:23:22 UTC (rev 247584)
+++ branches/safari-608-branch/Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp	2019-07-18 20:23:27 UTC (rev 247585)
@@ -45,7 +45,7 @@
 {
 }
 
-#if USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#if USE(PLATFORM_SYSTEM_FALLBACK_LIST)
 
 RetainPtr<CTFontRef> SystemFontDatabaseCoreText::createSystemUIFont(const CascadeListParameters& parameters, CFStringRef locale)
 {
@@ -238,7 +238,7 @@
     return cascadeList(systemFontParameters(description, cssFamily, clientUse, allowUserInstalledFonts), clientUse);
 }
 
-#endif // USE_PLATFORM_SYSTEM_FALLBACK_LIST
+#endif // USE(PLATFORM_SYSTEM_FALLBACK_LIST)
 
 static String genericFamily(const String& locale, HashMap<String, String>& map, CFStringRef ctKey)
 {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to