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

Unified Diff: Source/core/dom/Document.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 | « no previous file | Source/core/dom/StyleEngine.h » ('j') | Source/core/dom/StyleEngine.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 31fa3eaf232ae0fcb181779ffe66f2b9ab14d0ea..097fcdee5d1b5631dd43407737e2bb6396d8387a 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -709,7 +709,7 @@ void Document::setCompatibilityMode(CompatibilityMode mode)
selectorQueryCache().invalidate();
if (inQuirksMode() != wasInQuirksMode) {
// All injected stylesheets have to reparse using the different mode.
- m_styleEngine->invalidateInjectedStyleSheetCache();
+ m_styleEngine->compatibilityModeChanged();
}
}
« no previous file with comments | « no previous file | Source/core/dom/StyleEngine.h » ('j') | Source/core/dom/StyleEngine.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698