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

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

Issue 850463003: Remove RuleSet::viewportDependentMediaQueryResults. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix build. Created 5 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
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.h ('k') | no next file » | 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 0372b347fd2ef70147df43557bdc7ca014fafe0c..5d66a3d93120938d1c0a2dd233aef2ebd7a93a03 100644
--- a/sky/engine/core/css/resolver/StyleResolver.cpp
+++ b/sky/engine/core/css/resolver/StyleResolver.cpp
@@ -142,18 +142,12 @@ void StyleResolver::appendCSSStyleSheet(CSSStyleSheet* cssSheet)
return;
TreeScope& treeScope = ownerNode->treeScope();
- ScopedStyleResolver& resolver = treeScope.scopedStyleResolver();
- resolver.addRulesFromSheet(cssSheet);
-
- RuleSet& ruleSet = cssSheet->contents()->ruleSet();
-
- const MediaQueryResultList& list = ruleSet.viewportDependentMediaQueryResults();
- for (size_t i = 0; i < list.size(); ++i)
- m_viewportDependentMediaQueryResults.append(list[i]);
+ treeScope.scopedStyleResolver().addRulesFromSheet(cssSheet);
// FIXME(BUG 72461): We don't add @font-face rules of scoped style sheets for the moment.
if (ownerNode->isDocumentNode()) {
CSSFontSelector* fontSelector = document().styleEngine()->fontSelector();
+ RuleSet& ruleSet = cssSheet->contents()->ruleSet();
const Vector<RawPtr<StyleRuleFontFace> > fontFaceRules = ruleSet.fontFaceRules();
for (unsigned i = 0; i < fontFaceRules.size(); ++i) {
if (RefPtr<FontFace> fontFace = FontFace::create(&document(), fontFaceRules[i]))
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698