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

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

Issue 2081893003: Mark stylesheet as having media queries at consume time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back to marking at consume time Created 4 years, 6 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/StyleSheetContents.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
index c79583017a736b1fbbab801410603b05f9e01ebe..a3a7b8ff31a319af23ec78c0e0546a2d33e254b9 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -175,9 +175,6 @@ void StyleSheetContents::parserAppendRule(StyleRuleBase* rule)
return;
}
- if (rule->isMediaRule())
- setHasMediaQueries();
-
m_childRules.append(rule);
}
@@ -271,11 +268,6 @@ bool StyleSheetContents::wrapperInsertRule(StyleRuleBase* rule, unsigned index)
index -= m_namespaceRules.size();
- if (rule->isMediaRule())
- setHasMediaQueries();
- else if (rule->isFontFaceRule())
- setHasFontFaceRule(true);
-
m_childRules.insert(index, rule);
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.h ('k') | third_party/WebKit/Source/core/css/StyleSheetContentsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698