Title: [236971] trunk/Source/WebCore
- Revision
- 236971
- Author
- [email protected]
- Date
- 2018-10-09 11:38:47 -0700 (Tue, 09 Oct 2018)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (236970 => 236971)
--- trunk/Source/WebCore/ChangeLog 2018-10-09 18:25:29 UTC (rev 236970)
+++ trunk/Source/WebCore/ChangeLog 2018-10-09 18:38:47 UTC (rev 236971)
@@ -1,3 +1,15 @@
+2018-10-09 Antti Koivisto <[email protected]>
+
+ [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):
+
2018-10-09 Chris Dumez <[email protected]>
REGRESSION (Safari 12): Download of Blob URL fails
Modified: trunk/Source/WebCore/page/ProcessWarming.cpp (236970 => 236971)
--- trunk/Source/WebCore/page/ProcessWarming.cpp 2018-10-09 18:25:29 UTC (rev 236970)
+++ trunk/Source/WebCore/page/ProcessWarming.cpp 2018-10-09 18:38:47 UTC (rev 236971)
@@ -30,6 +30,7 @@
#include "CommonVM.h"
#include "Font.h"
#include "FontCache.h"
+#include "FontCascadeDescription.h"
#include "HTMLNames.h"
#include "MathMLNames.h"
#include "MediaFeatureNames.h"
@@ -70,7 +71,16 @@
// Prewarms JS VM.
commonVM();
-
+
+#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;
+ systemFontDescription.setOneFamily("system-ui");
+ systemFontDescription.setComputedSize(11);
+ systemFontDescription.effectiveFamilyCount();
+#endif
+
#if ENABLE(TELEPHONE_NUMBER_DETECTION)
TelephoneNumberDetector::isSupported();
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes