Index: Source/core/dom/StyleEngine.cpp |
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp |
index 11021c0279da1eb173db495f0b11640e421c889f..31216f7c7f74701affaf34d69ca4d539a7dc8189 100644 |
--- a/Source/core/dom/StyleEngine.cpp |
+++ b/Source/core/dom/StyleEngine.cpp |
@@ -572,4 +572,14 @@ void StyleEngine::resetFontSelector() |
} |
} |
+void StyleEngine::removeFontFaceRules(const Vector<const StyleRuleFontFace*>& fontFaceRules) |
+{ |
+ if (!m_fontSelector) |
+ return; |
+ for (unsigned i = 0; i < fontFaceRules.size(); ++i) |
+ m_fontSelector->removeFontFaceRule(fontFaceRules[i]); |
+ if (m_resolver) |
+ m_resolver->invalidateMatchedPropertiesCache(); |
+} |
+ |
} |