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

Changeset 236971 in webkit


Ignore:
Timestamp:
Oct 9, 2018, 11:38:47 AM (8 years ago)
Author:
Antti Koivisto
Message:

[PSON] Prewarm system UI font
https://bugs.webkit.org/show_bug.cgi?id=190397

Reviewed by Geoffrey Garen.

Cache system UI font fallbacks. Almost every web process needs these.

  • page/ProcessWarming.cpp:

(WebCore::ProcessWarming::prewarmGlobally):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r236970 r236971  
     12018-10-09  Antti Koivisto  <antti@apple.com>
     2
     3        [PSON] Prewarm system UI font
     4        https://bugs.webkit.org/show_bug.cgi?id=190397
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Cache system UI font fallbacks. Almost every web process needs these.
     9
     10        * page/ProcessWarming.cpp:
     11        (WebCore::ProcessWarming::prewarmGlobally):
     12
    1132018-10-09  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebCore/page/ProcessWarming.cpp

    r236959 r236971  
    3131#include "Font.h"
    3232#include "FontCache.h"
     33#include "FontCascadeDescription.h"
    3334#include "HTMLNames.h"
    3435#include "MathMLNames.h"
     
    7172    // Prewarms JS VM.
    7273    commonVM();
    73    
     74
     75#if USE_PLATFORM_SYSTEM_FALLBACK_LIST
     76    // Cache system UI font fallbacks. Almost every web process needs these.
     77    // Initializing one size is sufficient to warm CoreText caches.
     78    FontCascadeDescription systemFontDescription;
     79    systemFontDescription.setOneFamily("system-ui");
     80    systemFontDescription.setComputedSize(11);
     81    systemFontDescription.effectiveFamilyCount();
     82#endif
     83
    7484#if ENABLE(TELEPHONE_NUMBER_DETECTION)
    7585    TelephoneNumberDetector::isSupported();
Note: See TracChangeset for help on using the changeset viewer.