Index: Source/core/dom/StyleEngine.cpp |
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp |
index 48d06dd193fe9eb069ce282c67915eb11d683441..84afe041493ae368e54ce1855845c30868871532 100644 |
--- a/Source/core/dom/StyleEngine.cpp |
+++ b/Source/core/dom/StyleEngine.cpp |
@@ -572,6 +572,16 @@ 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(); |
+} |
+ |
void StyleEngine::markTreeScopeDirty(TreeScope& scope) |
{ |
if (scope == m_document) { |