Index: Source/core/css/ElementRuleCollector.cpp |
diff --git a/Source/core/css/ElementRuleCollector.cpp b/Source/core/css/ElementRuleCollector.cpp |
index 66036b00ca3f603063beb90ebe945d5270f8b2f3..06241d40f994d97d5fe7660ad295c3e574b9a249 100644 |
--- a/Source/core/css/ElementRuleCollector.cpp |
+++ b/Source/core/css/ElementRuleCollector.cpp |
@@ -42,7 +42,6 @@ |
#include "core/css/StylePropertySet.h" |
#include "core/css/resolver/StyleResolver.h" |
#include "core/dom/shadow/ShadowRoot.h" |
-#include "core/rendering/RenderRegion.h" |
namespace WebCore { |
@@ -51,7 +50,6 @@ ElementRuleCollector::ElementRuleCollector(const ElementResolveContext& context, |
: m_context(context) |
, m_selectorFilter(filter) |
, m_style(style) |
- , m_regionForStyling(0) |
, m_pseudoStyleRequest(NOPSEUDO) |
, m_mode(SelectorChecker::ResolvingStyle) |
, m_canUseFastReject(m_selectorFilter.parentStackIsConsistent(context.parentNode())) |
@@ -178,21 +176,6 @@ void ElementRuleCollector::collectMatchingRules(const MatchRequest& matchRequest |
collectMatchingRulesForList(matchRequest.ruleSet->universalRules(), behaviorAtBoundary, cascadeScope, cascadeOrder, matchRequest, ruleRange); |
} |
-void ElementRuleCollector::collectMatchingRulesForRegion(const MatchRequest& matchRequest, RuleRange& ruleRange, SelectorChecker::BehaviorAtBoundary behaviorAtBoundary, CascadeScope cascadeScope, CascadeOrder cascadeOrder) |
-{ |
- if (!m_regionForStyling) |
- return; |
- |
- unsigned size = matchRequest.ruleSet->m_regionSelectorsAndRuleSets.size(); |
- for (unsigned i = 0; i < size; ++i) { |
- const CSSSelector* regionSelector = matchRequest.ruleSet->m_regionSelectorsAndRuleSets.at(i).selector; |
- if (checkRegionSelector(regionSelector, toElement(m_regionForStyling->nodeForRegion()))) { |
- RuleSet* regionRules = matchRequest.ruleSet->m_regionSelectorsAndRuleSets.at(i).ruleSet.get(); |
- ASSERT(regionRules); |
- collectMatchingRules(MatchRequest(regionRules, matchRequest.includeEmptyRules, matchRequest.scope), ruleRange, behaviorAtBoundary, cascadeScope, cascadeOrder); |
- } |
- } |
-} |
CSSRuleList* ElementRuleCollector::nestedRuleList(CSSRule* rule) |
{ |