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

Unified Diff: Source/core/css/analyzer/DescendantInvalidationSet.h

Issue 208323003: Add support for attribute selectors in TargetedStyleRecalc. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compilation Created 6 years, 9 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/css/RuleFeature.cpp ('k') | Source/core/css/analyzer/DescendantInvalidationSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/analyzer/DescendantInvalidationSet.h
diff --git a/Source/core/css/analyzer/DescendantInvalidationSet.h b/Source/core/css/analyzer/DescendantInvalidationSet.h
index ce83b85059538c5e10a3bf635bb251b25446df9e..93c18e6baefecd80c221924bc36ef248a00c865c 100644
--- a/Source/core/css/analyzer/DescendantInvalidationSet.h
+++ b/Source/core/css/analyzer/DescendantInvalidationSet.h
@@ -56,10 +56,14 @@ public:
void addClass(const AtomicString& className);
void addId(const AtomicString& id);
void addTagName(const AtomicString& tagName);
+ void addAttribute(const AtomicString& attributeLocalName);
// Appends the classes in this DescendantInvalidationSet to the vector.
void getClasses(Vector<AtomicString>& classes) const;
+ // Appends the attributes in this DescendantInvalidationSet to the vector.
+ void getAttributes(Vector<AtomicString>& attributes) const;
+
void setWholeSubtreeInvalid();
bool wholeSubtreeInvalid() const { return m_allDescendantsMightBeInvalid; }
private:
@@ -68,6 +72,7 @@ private:
HashSet<AtomicString>& ensureClassSet();
HashSet<AtomicString>& ensureIdSet();
HashSet<AtomicString>& ensureTagNameSet();
+ HashSet<AtomicString>& ensureAttributeSet();
// If true, all descendants might be invalidated, so a full subtree recalc is required.
bool m_allDescendantsMightBeInvalid;
@@ -76,6 +81,7 @@ private:
OwnPtr<HashSet<AtomicString> > m_classes;
OwnPtr<HashSet<AtomicString> > m_ids;
OwnPtr<HashSet<AtomicString> > m_tagNames;
+ OwnPtr<HashSet<AtomicString> > m_attributes;
};
} // namespace WebCore
« no previous file with comments | « Source/core/css/RuleFeature.cpp ('k') | Source/core/css/analyzer/DescendantInvalidationSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698