Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b788bbfd09071496ddd5bda1675fe1a41ff80291
      
https://github.com/WebKit/WebKit/commit/b788bbfd09071496ddd5bda1675fe1a41ff80291
  Author: Per Arne Vollan <[email protected]>
  Date:   2025-06-12 (Thu, 12 Jun 2025)

  Changed paths:
    M Source/WTF/wtf/cf/TypeCastsCF.h
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.h
    M Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
    M Source/WebKit/UIProcess/WebProcessPool.h
    M Source/WebKit/WebProcess/WebProcess.h
    M Source/WebKit/WebProcess/WebProcess.messages.in
    M Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

  Log Message:
  -----------
  Optimize registration of user installed fonts
https://bugs.webkit.org/show_bug.cgi?id=294168
rdar://150061783

Reviewed by Sihui Liu and Chris Dumez.

Improve performance by only registering user installed fonts with font manager 
when they are actually being used on the page.

* Source/WTF/wtf/cf/TypeCastsCF.h:
* Source/WebCore/platform/graphics/FontCache.cpp:
(WebCore::FontCache::cachedFontPlatformData):
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::platformFontLookupWithFamily):
(WebCore::FontCache::createFontPlatformData):
(WebCore::userInstalledFontMap):
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.h:
* Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::sandboxExtensionsForUserInstalledFonts):
(WebKit::addUserInstalledFontURLs):
(WebKit::WebProcessPool::registerUserInstalledFonts):
(WebKit::WebProcessPool::registerAdditionalFonts):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::creationParameters):
* Source/WebKit/UIProcess/WebProcessPool.h:
* Source/WebKit/WebProcess/WebProcess.h:
* Source/WebKit/WebProcess/WebProcess.messages.in:
* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::registerFontMap):

Canonical link: https://commits.webkit.org/296142@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to