| Index: Source/core/css/FontFaceCache.cpp
|
| diff --git a/Source/core/css/FontFaceCache.cpp b/Source/core/css/FontFaceCache.cpp
|
| index 59d8727c8bd43dce3f8c130d65d31d8af92a70bf..6c4c9b5cb9a0203ce321876d5256763fb0210ee7 100644
|
| --- a/Source/core/css/FontFaceCache.cpp
|
| +++ b/Source/core/css/FontFaceCache.cpp
|
| @@ -107,6 +107,13 @@ void FontFaceCache::removeFontFace(FontFace* fontFace, bool cssConnected)
|
| ++m_version;
|
| }
|
|
|
| +void FontFaceCache::clear()
|
| +{
|
| + for (StyleRuleToFontFace::iterator it = m_styleRuleToFontFace.begin(); it != m_styleRuleToFontFace.end(); ++it)
|
| + removeFontFace(it->value.get(), true);
|
| + m_styleRuleToFontFace.clear();
|
| +}
|
| +
|
| static inline bool compareFontFaces(CSSSegmentedFontFace* first, CSSSegmentedFontFace* second, FontTraitsMask desiredTraitsMask)
|
| {
|
| FontTraitsMask firstTraitsMask = first->traitsMask();
|
|
|