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

Unified Diff: sky/engine/core/css/resolver/StyleResolver.cpp

Issue 807703003: Remove @media rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/css/resolver/StyleResolver.h ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/resolver/StyleResolver.cpp
diff --git a/sky/engine/core/css/resolver/StyleResolver.cpp b/sky/engine/core/css/resolver/StyleResolver.cpp
index 78bc0384addab37b195e07a46af114ebcf9f8dc7..144b45c946293d9aef506c2b22f972eb972e18d2 100644
--- a/sky/engine/core/css/resolver/StyleResolver.cpp
+++ b/sky/engine/core/css/resolver/StyleResolver.cpp
@@ -101,7 +101,6 @@ static RuleSet& defaultStyles()
{
DEFINE_STATIC_LOCAL(RefPtr<StyleSheetContents>, styleSheet, ());
DEFINE_STATIC_LOCAL(OwnPtr<RuleSet>, ruleSet, ());
- DEFINE_STATIC_LOCAL(const MediaQueryEvaluator, screenEval, ("screen"));
if (ruleSet)
return *ruleSet;
@@ -121,7 +120,7 @@ static RuleSet& defaultStyles()
styleSheet->parseString(cssText);
ruleSet = RuleSet::create();
- ruleSet->addRulesFromSheet(styleSheet.get(), screenEval);
+ ruleSet->addRulesFromSheet(styleSheet.get());
return *ruleSet;
}
@@ -170,7 +169,7 @@ void StyleResolver::appendCSSStyleSheet(CSSStyleSheet* cssSheet)
TreeScope& treeScope = ownerNode->treeScope();
ScopedStyleResolver& resolver = treeScope.ensureScopedStyleResolver();
document().styleEngine()->addScopedStyleResolver(&resolver);
- resolver.addRulesFromSheet(cssSheet, *m_medium, this);
+ resolver.addRulesFromSheet(cssSheet, this);
}
void StyleResolver::appendPendingAuthorStyleSheets()
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.h ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698