| Index: Source/core/css/resolver/ScopedStyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| index 720cc2e1d06417ae08d6aef7f8dd3fee64420744..1a05e978e708f76a80fffa1fe2f6c691a6f9d66b 100644
|
| --- a/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| +++ b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| @@ -68,16 +68,10 @@ ScopedStyleResolver* ScopedStyleResolver::parent() const
|
| return 0;
|
| }
|
|
|
| -void ScopedStyleResolver::addRulesFromSheet(CSSStyleSheet* cssSheet, const MediaQueryEvaluator& medium, StyleResolver* resolver)
|
| +unsigned ScopedStyleResolver::appendCSSStyleSheet(CSSStyleSheet* cssSheet)
|
| {
|
| m_authorStyleSheets.append(cssSheet);
|
| - unsigned index = m_authorStyleSheets.size() - 1;
|
| - StyleSheetContents* sheet = cssSheet->contents();
|
| -
|
| - AddRuleFlags addRuleFlags = resolver->document().securityOrigin()->canRequest(sheet->baseURL()) ? RuleHasDocumentSecurityOrigin : RuleHasNoSpecialState;
|
| - const RuleSet& ruleSet = sheet->ensureRuleSet(medium, addRuleFlags);
|
| - resolver->addMediaQueryResults(ruleSet.viewportDependentMediaQueryResults());
|
| - resolver->processScopedRules(ruleSet, cssSheet, index, treeScope().rootNode());
|
| + return m_authorStyleSheets.size() - 1;
|
| }
|
|
|
| void ScopedStyleResolver::collectFeaturesTo(RuleFeatureSet& features, HashSet<const StyleSheetContents*>& visitedSharedStyleSheetContents) const
|
|
|