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

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

Issue 2699883002: Add type selector invalidation set for ruleset invalidations. (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/RuleFeature.h
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.h b/third_party/WebKit/Source/core/css/RuleFeature.h
index 064b86ac78a4c128c95f7b5e1c76c75910b9e170..313faead61d4d696456dc3956776719fc4402a6e 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.h
+++ b/third_party/WebKit/Source/core/css/RuleFeature.h
@@ -34,6 +34,7 @@
namespace blink {
+class ContainerNode;
struct InvalidationLists;
class QualifiedName;
class RuleData;
@@ -152,6 +153,7 @@ class CORE_EXPORT RuleFeatureSet {
void collectUniversalSiblingInvalidationSet(InvalidationLists&,
unsigned minDirectAdjacent) const;
void collectNthInvalidationSet(InvalidationLists&) const;
+ void collectTypeRuleInvalidationSet(InvalidationLists&, ContainerNode&) const;
bool hasIdsInSelectors() const { return m_idInvalidationSets.size() > 0; }
@@ -200,6 +202,7 @@ class CORE_EXPORT RuleFeatureSet {
InvalidationType);
SiblingInvalidationSet& ensureUniversalSiblingInvalidationSet();
DescendantInvalidationSet& ensureNthInvalidationSet();
+ DescendantInvalidationSet& ensureTypeRuleInvalidationSet();
void updateInvalidationSets(const RuleData&);
void updateInvalidationSetsForContentAttribute(const RuleData&);
@@ -286,6 +289,7 @@ class CORE_EXPORT RuleFeatureSet {
PseudoTypeInvalidationSetMap m_pseudoInvalidationSets;
RefPtr<SiblingInvalidationSet> m_universalSiblingInvalidationSet;
RefPtr<DescendantInvalidationSet> m_nthInvalidationSet;
+ RefPtr<DescendantInvalidationSet> m_typeRuleInvalidationSet;
HeapVector<RuleFeature> m_siblingRules;
HeapVector<RuleFeature> m_uncommonAttributeRules;
MediaQueryResultList m_viewportDependentMediaQueryResults;
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698