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

Unified Diff: third_party/WebKit/Source/core/css/RuleFeature.cpp

Issue 2321013002: Corrected variable name to not contain "Tag". (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/RuleFeature.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.cpp b/third_party/WebKit/Source/core/css/RuleFeature.cpp
index 794942095ac495758cf1538b057ab62a95d439b3..740a207cdb3e824647b458898ea0a7494e5a4c30 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeature.cpp
@@ -653,19 +653,19 @@ void RuleFeatureSet::addFeaturesToInvalidationSetsForSimpleSelector(const CSSSel
const CSSSelector* RuleFeatureSet::addFeaturesToInvalidationSetsForCompoundSelector(const CSSSelector& compound, InvalidationSetFeatures* siblingFeatures, InvalidationSetFeatures& descendantFeatures)
{
- bool compoundHasTagIdClassOrAttribute = false;
+ bool compoundHasIdClassOrAttribute = false;
const CSSSelector* simpleSelector = &compound;
for (; simpleSelector; simpleSelector = simpleSelector->tagHistory()) {
addFeaturesToInvalidationSetsForSimpleSelector(*simpleSelector, siblingFeatures, descendantFeatures);
if (siblingFeatures)
- compoundHasTagIdClassOrAttribute |= simpleSelector->isIdClassOrAttributeSelector();
+ compoundHasIdClassOrAttribute |= simpleSelector->isIdClassOrAttributeSelector();
if (simpleSelector->relation() != CSSSelector::SubSelector)
break;
if (!simpleSelector->tagHistory())
break;
}
- if (siblingFeatures && !compoundHasTagIdClassOrAttribute)
+ if (siblingFeatures && !compoundHasIdClassOrAttribute)
addFeaturesToUniversalSiblingInvalidationSet(*siblingFeatures, descendantFeatures);
return simpleSelector;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698