| Index: Source/core/css/resolver/ScopedStyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| index e9693d0db983be5de1d7ef746151382d52539841..a5f34e5b9bd0413c6b370cc66db28f8cbde14b08 100644
|
| --- a/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| +++ b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| @@ -75,7 +75,7 @@ void ScopedStyleResolver::addRulesFromSheet(CSSStyleSheet* cssSheet, const Media
|
| AddRuleFlags addRuleFlags = resolver->document().securityOrigin()->canRequest(sheet->baseURL()) ? RuleHasDocumentSecurityOrigin : RuleHasNoSpecialState;
|
| const RuleSet& ruleSet = sheet->ensureRuleSet(medium, addRuleFlags);
|
| resolver->addMediaQueryResults(ruleSet.viewportDependentMediaQueryResults());
|
| - resolver->processScopedRules(ruleSet, sheet->baseURL(), &m_scopingNode);
|
| + resolver->processScopedRules(ruleSet, cssSheet, &m_scopingNode);
|
| }
|
|
|
| void ScopedStyleResolver::collectFeaturesTo(RuleFeatureSet& features, HashSet<const StyleSheetContents*>& visitedSharedStyleSheetContents)
|
| @@ -134,7 +134,7 @@ void ScopedStyleResolver::collectMatchingAuthorRules(ElementRuleCollector& colle
|
|
|
| RuleRange ruleRange = collector.matchedResult().ranges.authorRuleRange();
|
| for (size_t i = 0; i < m_authorStyleSheets.size(); ++i) {
|
| - MatchRequest matchRequest(&m_authorStyleSheets[i]->contents()->ruleSet(), includeEmptyRules, scopingNode, applyAuthorStyles, i, m_authorStyleSheets[i]);
|
| + MatchRequest matchRequest(&m_authorStyleSheets[i]->contents()->ruleSet(), includeEmptyRules, scopingNode, m_authorStyleSheets[i], applyAuthorStyles, i);
|
| collector.collectMatchingRules(matchRequest, ruleRange, static_cast<SelectorChecker::BehaviorAtBoundary>(behaviorAtBoundary), cascadeScope, cascadeOrder);
|
| }
|
| }
|
|
|