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

Unified Diff: Source/core/css/RuleFeature.h

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
Index: Source/core/css/RuleFeature.h
diff --git a/Source/core/css/RuleFeature.h b/Source/core/css/RuleFeature.h
index 200884fb57ee26086c0f502674d265cbb0168cee..5531646e38c06f748a393037cb6ecc918a1b4254 100644
--- a/Source/core/css/RuleFeature.h
+++ b/Source/core/css/RuleFeature.h
@@ -84,6 +84,11 @@ public:
return m_idInvalidationSets.contains(idValue);
}
+ inline bool hasSelectorForPseudoType(CSSSelector::PseudoType pseudo) const
esprehn 2014/09/19 04:55:17 remove inline, this in the class def so it's inlin
rune 2014/09/23 12:23:16 Done.
+ {
+ return m_pseudoInvalidationSets.contains(pseudo);
+ }
+
void scheduleStyleInvalidationForClassChange(const SpaceSplitString& changedClasses, Element&);
void scheduleStyleInvalidationForClassChange(const SpaceSplitString& oldClasses, const SpaceSplitString& newClasses, Element&);
void scheduleStyleInvalidationForAttributeChange(const QualifiedName& attributeName, Element&);

Powered by Google App Engine
This is Rietveld 408576698