| 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]))
|
|
|