Chromium Code Reviews| Index: Source/core/dom/StyleEngine.cpp |
| diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp |
| index 1e9ff7b4f74627a83ced71d20b498cbe8a0ac18a..926d2c8e6fdceaeb9d9513cb801d151e90c817ee 100644 |
| --- a/Source/core/dom/StyleEngine.cpp |
| +++ b/Source/core/dom/StyleEngine.cpp |
| @@ -231,6 +231,12 @@ void StyleEngine::invalidateInjectedStyleSheetCache() |
| document().styleResolverChanged(); |
| } |
| +void StyleEngine::compatibilityModeChanged() |
| +{ |
| + if (!m_injectedAuthorStyleSheets.isEmpty()) |
|
esprehn
2014/08/19 11:30:59
Is this correct? If the cache is empty why don't w
rune
2014/08/19 13:31:16
The cache is the set of injected stylesheet which
|
| + invalidateInjectedStyleSheetCache(); |
| +} |
| + |
| void StyleEngine::addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet) |
| { |
| m_authorStyleSheets.append(CSSStyleSheet::create(authorSheet, m_document)); |