[webkit-changes] [WebKit/WebKit] db0ade: Call FontCache::invalidate under memory pressure

Cameron McCormack noreply at github.com
Wed Jan 4 12:30:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: db0ade3c62fb2c65e7b2b1a8060b886981ded622
      https://github.com/WebKit/WebKit/commit/db0ade3c62fb2c65e7b2b1a8060b886981ded622
  Author: Cameron McCormack <heycam at apple.com>
  Date:   2023-01-04 (Wed, 04 Jan 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

  Log Message:
  -----------
  Call FontCache::invalidate under memory pressure
https://bugs.webkit.org/show_bug.cgi?id=249561
rdar://103498661

Reviewed by Myles C. Maxfield.

The changes in bug 234061 caused us not to call FontCache::invalidate
under memory pressure, which we should do, since it clears some data
that the current platformReleaseNoncriticalMemory does not do.

The two things that are done -- clearing m_systemFontDatabaseCoreText
and m_fontFamilySpecificationCoreTextCache -- are also done by
invalidate(), so we can replace them with an invalidate() call.

* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::FontCache::platformReleaseNoncriticalMemory):

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




More information about the webkit-changes mailing list