Index: Source/core/dom/shadow/SelectRuleFeatureSet.cpp |
diff --git a/Source/core/dom/shadow/SelectRuleFeatureSet.cpp b/Source/core/dom/shadow/SelectRuleFeatureSet.cpp |
index 9f576f0b05e303761c24c97479608e8898dc9546..b4dd73bf967dee89268abe918d3b7f4e31862067 100644 |
--- a/Source/core/dom/shadow/SelectRuleFeatureSet.cpp |
+++ b/Source/core/dom/shadow/SelectRuleFeatureSet.cpp |
@@ -37,52 +37,19 @@ |
namespace blink { |
-SelectRuleFeatureSet::SelectRuleFeatureSet() |
- : m_featureFlags(0) |
-{ |
-} |
- |
void SelectRuleFeatureSet::add(const SelectRuleFeatureSet& featureSet) |
{ |
m_cssRuleFeatureSet.add(featureSet.m_cssRuleFeatureSet); |
- m_featureFlags |= featureSet.m_featureFlags; |
} |
void SelectRuleFeatureSet::clear() |
{ |
m_cssRuleFeatureSet.clear(); |
- m_featureFlags = 0; |
} |
void SelectRuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& selector) |
{ |
m_cssRuleFeatureSet.collectFeaturesFromSelector(selector); |
- |
- switch (selector.pseudoType()) { |
- case CSSSelector::PseudoChecked: |
- setSelectRuleFeature(AffectedSelectorChecked); |
- break; |
- case CSSSelector::PseudoEnabled: |
- setSelectRuleFeature(AffectedSelectorEnabled); |
- break; |
- case CSSSelector::PseudoDisabled: |
- setSelectRuleFeature(AffectedSelectorDisabled); |
- break; |
- case CSSSelector::PseudoIndeterminate: |
- setSelectRuleFeature(AffectedSelectorIndeterminate); |
- break; |
- case CSSSelector::PseudoLink: |
- setSelectRuleFeature(AffectedSelectorLink); |
- break; |
- case CSSSelector::PseudoTarget: |
- setSelectRuleFeature(AffectedSelectorTarget); |
- break; |
- case CSSSelector::PseudoVisited: |
- setSelectRuleFeature(AffectedSelectorVisited); |
- break; |
- default: |
- break; |
- } |
} |
bool SelectRuleFeatureSet::checkSelectorsForClassChange(const SpaceSplitString& changedClasses) const |