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

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

Issue 28553005: Avoid parsing css text if there are identical inline style blocks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 806e65d0a85943f990681650ae22c5ea79f8fbdb..7b5899c9c3f88e49d40ce1084d132498f6171adb 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -625,6 +625,7 @@ void Document::setCompatibilityMode(CompatibilityMode mode)
selectorQueryCache().invalidate();
if (inQuirksMode() != wasInQuirksMode) {
// All injected stylesheets have to reparse using the different mode.
+ StyleEngine::clearSheetCache();
esprehn 2014/01/09 10:05:32 You still can't do this, loading any quirks mode d
tasak 2014/01/09 11:59:05 I see. I agree that it is much better to split cac
m_styleEngine->invalidateInjectedStyleSheetCache();
}
}

Powered by Google App Engine
This is Rietveld 408576698