Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Unified Diff: Source/core/dom/shadow/SelectRuleFeatureSet.cpp

Issue 540533004: Use style invalidation for more pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.h ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.h ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698