Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6bacccff367f09b64fdfa8352011241a7d0b0c9c
https://github.com/WebKit/WebKit/commit/6bacccff367f09b64fdfa8352011241a7d0b0c9c
Author: Brent Fulgham <[email protected]>
Date: 2026-05-08 (Fri, 08 May 2026)
Changed paths:
M Source/WebCore/page/SettingsBase.cpp
M Source/WebCore/platform/graphics/SystemFontDatabase.h
Log Message:
-----------
SystemFontDatabase::m_systemFontShorthandCache may hold stale font metrics
https://bugs.webkit.org/show_bug.cgi?id=314284
rdar://176423531
Reviewed by Vitor Roriz.
Code analysis has uncovered a correctness issue that causes the
SystemFontDatabase
to retain stale font metrics after they are no longer needed. Since those
entries
consists of a string plus 8 bytes worth of size/weight data, this seems worth
improving.
Tests: imported/w3c/web-platform-tests/css/css-forms/appearance-base-basic.html
* Source/WebCore/page/SettingsBase.cpp:
(WebCore::invalidateAfterGenericFamilyChange): Add missing call to
SystemFontDatabase::singleton().invalidate()
(WebCore::invalidateAfterGenericFamilyChange):
* Source/WebCore/platform/graphics/SystemFontDatabase.h:
Canonical link: https://commits.webkit.org/312896@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications