⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 254589 in webkit


Ignore:
Timestamp:
Jan 15, 2020, 11:14:45 AM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r254099. rdar://problem/58552889

[iOS] Only prewarm fonts with valid font names
​https://bugs.webkit.org/show_bug.cgi?id=205822

Reviewed by Brent Fulgham.

The font names ".SF NS Text" and ".SF NS Display" are not valid on iOS, and should not be prewarmed.

No new tests, no behavior change.

  • platform/graphics/cocoa/FontCacheCoreText.cpp: (WebCore::FontCache::prewarmGlobally):

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

Location:
branches/safari-609-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-609-branch/Source/WebCore/ChangeLog

    r254585 r254589  
     12020-01-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r254099. rdar://problem/58552889
     4
     5    [iOS] Only prewarm fonts with valid font names
     6    https://bugs.webkit.org/show_bug.cgi?id=205822
     7   
     8    Reviewed by Brent Fulgham.
     9   
     10    The font names ".SF NS Text" and ".SF NS Display" are not valid on iOS, and should not be prewarmed.
     11   
     12    No new tests, no behavior change.
     13   
     14    * platform/graphics/cocoa/FontCacheCoreText.cpp:
     15    (WebCore::FontCache::prewarmGlobally):
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2020-01-06  Per Arne Vollan  <pvollan@apple.com>
     21
     22            [iOS] Only prewarm fonts with valid font names
     23            https://bugs.webkit.org/show_bug.cgi?id=205822
     24
     25            Reviewed by Brent Fulgham.
     26
     27            The font names ".SF NS Text" and ".SF NS Display" are not valid on iOS, and should not be prewarmed.
     28
     29            No new tests, no behavior change.
     30
     31            * platform/graphics/cocoa/FontCacheCoreText.cpp:
     32            (WebCore::FontCache::prewarmGlobally):
     33
    1342020-01-14  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-609-branch/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

    r254585 r254589  
    16951695
    16961696    Vector<String> families = std::initializer_list<String> {
     1697#if PLATFORM(MAC) || PLATFORM(MACCATALYST)
    16971698        ".SF NS Text"_s,
    16981699        ".SF NS Display"_s,
     1700#endif
    16991701        "Arial"_s,
    17001702        "Helvetica"_s,
Note: See TracChangeset for help on using the changeset viewer.