338f0ca3b3
https://bugs.webkit.org/show_bug.cgi?id=223858 <rdar://75883697> Reviewed by Darin Adler and Ryosuke Niwa. Source/WebCore: Stop using a hash as key in the FontCascadeCache. Instead, use HashTraits and use FontCascadeCacheKey as key. Test: fonts/font-cache-crash.html * platform/graphics/FontCache.cpp: (WebCore::FontCache::retrieveOrAddCachedFonts): (WTF::FontCascadeCacheKeyHash::hash): * platform/graphics/FontCache.h: (WebCore::FontCascadeCacheKey::operator== const): (WTF::FontCascadeCacheKeyHash::equal): (WTF::HashTraits<WebCore::FontCascadeCacheKey>::emptyValue): (WTF::HashTraits<WebCore::FontCascadeCacheKey>::constructDeletedValue): (WTF::HashTraits<WebCore::FontCascadeCacheKey>::isDeletedValue): LayoutTests: Add layout test coverage. * fonts/font-cache-crash-expected.txt: Added. * fonts/font-cache-crash.html: Added. Canonical link: https://commits.webkit.org/235888@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275189 268f45cc-cd09-0410-ab3c-d52691b4dbfc |
||
---|---|---|
.. | ||
cursive.html | ||
default.html | ||
fantasy.html | ||
font-cache-crash-expected.txt | ||
font-cache-crash.html | ||
font-fallback-prefers-pictographs-expected.html | ||
font-fallback-prefers-pictographs.html | ||
ligature-expected.html | ||
ligature.html | ||
ligature.woff | ||
lineheight5000-typolineheight2300.woff | ||
monospace.html | ||
sans-serif.html | ||
serif.html | ||
unicode-character-font-crash-expected.txt | ||
unicode-character-font-crash.html | ||
use-typo-metrics-1-expected.html | ||
use-typo-metrics-1.html | ||
valid-standard-font-expected.txt | ||
valid-standard-font.html |