diff options
Diffstat (limited to 'Source/WebCore/css/CSSFontSelector.cpp')
-rw-r--r-- | Source/WebCore/css/CSSFontSelector.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/css/CSSFontSelector.cpp b/Source/WebCore/css/CSSFontSelector.cpp index 8024afa..0f70664 100644 --- a/Source/WebCore/css/CSSFontSelector.cpp +++ b/Source/WebCore/css/CSSFontSelector.cpp @@ -378,6 +378,16 @@ void CSSFontSelector::fontCacheInvalidated() dispatchInvalidationCallbacks(); } +void CSSFontSelector::retireCustomFont(FontData* fontData) +{ + if (m_document) + m_document->retireCustomFont(fontData); + else { + GlyphPageTreeNode::pruneTreeCustomFontData(fontData); + delete fontData; + } +} + static FontData* fontDataForGenericFamily(Document* document, const FontDescription& fontDescription, const AtomicString& familyName) { if (!document || !document->frame()) |