| Index: sky/engine/core/css/ElementRuleCollector.cpp
|
| diff --git a/sky/engine/core/css/ElementRuleCollector.cpp b/sky/engine/core/css/ElementRuleCollector.cpp
|
| index f4ad0a25354d51f874d5b8fb27e003a24ea6b2aa..d9f5f38b0f1cbdb015d004e5fdebf53fc78fa02d 100644
|
| --- a/sky/engine/core/css/ElementRuleCollector.cpp
|
| +++ b/sky/engine/core/css/ElementRuleCollector.cpp
|
| @@ -191,20 +191,4 @@ void ElementRuleCollector::sortMatchedRules()
|
| std::sort(m_matchedRules->begin(), m_matchedRules->end(), compareRules);
|
| }
|
|
|
| -bool ElementRuleCollector::hasAnyMatchingRules(RuleSet* ruleSet)
|
| -{
|
| - clearMatchedRules();
|
| -
|
| - m_mode = SelectorChecker::SharingRules;
|
| - // To check whether a given RuleSet has any rule matching a given element,
|
| - // should not see the element's treescope. Because RuleSet has no
|
| - // information about "scope".
|
| - int firstRuleIndex = -1, lastRuleIndex = -1;
|
| - RuleRange ruleRange(firstRuleIndex, lastRuleIndex);
|
| - // FIXME: Verify whether it's ok to ignore CascadeScope here.
|
| - collectMatchingRules(MatchRequest(ruleSet), ruleRange, SelectorChecker::DefaultBehavior);
|
| -
|
| - return m_matchedRules && !m_matchedRules->isEmpty();
|
| -}
|
| -
|
| } // namespace blink
|
|
|