| Index: sky/engine/core/css/resolver/ScopedStyleResolver.cpp
|
| diff --git a/sky/engine/core/css/resolver/ScopedStyleResolver.cpp b/sky/engine/core/css/resolver/ScopedStyleResolver.cpp
|
| index 472ccfdc798f025cd98d2481a068d8ad8bff7f15..73edabb4bef8384bbe8e09639b1a88f509a24960 100644
|
| --- a/sky/engine/core/css/resolver/ScopedStyleResolver.cpp
|
| +++ b/sky/engine/core/css/resolver/ScopedStyleResolver.cpp
|
| @@ -76,16 +76,13 @@ const StyleRuleKeyframes* ScopedStyleResolver::keyframeStylesForAnimation(String
|
| return nullptr;
|
| }
|
|
|
| -void ScopedStyleResolver::collectMatchingAuthorRules(ElementRuleCollector& collector, bool includeEmptyRules, bool applyAuthorStyles, CascadeScope cascadeScope, CascadeOrder cascadeOrder)
|
| +void ScopedStyleResolver::collectMatchingAuthorRules(ElementRuleCollector& collector, bool includeEmptyRules, CascadeScope cascadeScope, CascadeOrder cascadeOrder)
|
| {
|
| unsigned contextFlags = SelectorChecker::DefaultBehavior;
|
|
|
| - if (!applyAuthorStyles)
|
| - contextFlags |= SelectorChecker::ScopeContainsLastMatchedElement;
|
| -
|
| RuleRange ruleRange = collector.matchedResult().ranges.authorRuleRange();
|
| for (size_t i = 0; i < m_authorStyleSheets.size(); ++i) {
|
| - MatchRequest matchRequest(&m_authorStyleSheets[i]->contents()->ruleSet(), includeEmptyRules, &m_scope->rootNode(), m_authorStyleSheets[i], applyAuthorStyles, i);
|
| + MatchRequest matchRequest(&m_authorStyleSheets[i]->contents()->ruleSet(), includeEmptyRules, &m_scope->rootNode(), m_authorStyleSheets[i], i);
|
| collector.collectMatchingRules(matchRequest, ruleRange, static_cast<SelectorChecker::ContextFlags>(contextFlags), cascadeScope, cascadeOrder);
|
| }
|
| }
|
|
|