Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: Source/core/dom/StyleEngine.cpp

Issue 468903002: No need to re-parse empty set of injected stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698