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

Unified Diff: third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp

Issue 2873123002: Put unqualified pseudos into the more specific rulesets. (Closed)
Patch Set: comments. Created 3 years, 7 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: third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp b/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp
index e0ba8808823dd7593278ea1f9251d9ef90c2bfbb..694cc60067788cecb8cd8781cc5f824b148c7e3d 100644
--- a/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp
+++ b/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp
@@ -90,6 +90,15 @@ CSSDefaultStyleSheets::CSSDefaultStyleSheets() {
LayoutTheme::GetTheme().ExtraQuirksStyleSheet();
quirks_style_sheet_ = ParseUASheet(quirks_rules);
default_quirks_style_->AddRulesFromSheet(QuirksStyleSheet(), ScreenEval());
+
+#if DCHECK_IS_ON()
+ default_style_->CompactRulesIfNeeded();
+ default_print_style_->CompactRulesIfNeeded();
+ default_quirks_style_->CompactRulesIfNeeded();
+ DCHECK(default_style_->UniversalRules()->IsEmpty());
+ DCHECK(default_print_style_->UniversalRules()->IsEmpty());
+ DCHECK(default_quirks_style_->UniversalRules()->IsEmpty());
+#endif
}
RuleSet* CSSDefaultStyleSheets::DefaultViewSourceStyle() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleSet.cpp » ('j') | third_party/WebKit/Source/core/css/RuleSet.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698