| Index: Source/core/dom/DocumentStyleSheetCollection.cpp
|
| diff --git a/Source/core/dom/DocumentStyleSheetCollection.cpp b/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| index 1a24de3c7e0133eaf9d698f7eb5d70cbeb822e8f..f4d322add86a77df6275d581a3770d215c841cae 100644
|
| --- a/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| +++ b/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| @@ -123,23 +123,22 @@ bool DocumentStyleSheetCollection::updateActiveStyleSheets(StyleEngine* engine,
|
|
|
| if (change.styleResolverUpdateType == Reconstruct) {
|
| engine->clearMasterResolver();
|
| - engine->resetFontSelector();
|
| + // FIMXE: The following depends on whether StyleRuleFontFace was modified or not.
|
| + // No need to always-clear font cache.
|
| + engine->clearFontCache();
|
| } else if (StyleResolver* styleResolver = engine->resolver()) {
|
| // FIXME: We might have already had styles in child treescope. In this case, we cannot use buildScopedStyleTreeInDocumentOrder.
|
| // Need to change "false" to some valid condition.
|
| styleResolver->setBuildScopedStyleTreeInDocumentOrder(false);
|
| if (change.styleResolverUpdateType != Additive) {
|
| - ASSERT(change.styleResolverUpdateType == Reset || change.styleResolverUpdateType == ResetStyleResolverAndFontSelector);
|
| + ASSERT(change.styleResolverUpdateType == Reset);
|
| resetAllRuleSetsInTreeScope(styleResolver);
|
| - if (change.styleResolverUpdateType == ResetStyleResolverAndFontSelector)
|
| - engine->resetFontSelector();
|
| + engine->removeFontFaceRules(change.fontFaceRulesToRemove);
|
| styleResolver->removePendingAuthorStyleSheets(m_activeAuthorStyleSheets);
|
| styleResolver->lazyAppendAuthorStyleSheets(0, collection.activeAuthorStyleSheets());
|
| } else {
|
| styleResolver->lazyAppendAuthorStyleSheets(m_activeAuthorStyleSheets.size(), collection.activeAuthorStyleSheets());
|
| }
|
| - } else if (change.styleResolverUpdateType == ResetStyleResolverAndFontSelector) {
|
| - engine->resetFontSelector();
|
| }
|
| m_scopingNodesForStyleScoped.didRemoveScopingNodes();
|
|
|
|
|