Chromium Code Reviews

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

Issue 143873016: Implement style invalidation tree walk for targeted style recalc upon class change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/css/analyzer/DescendantInvalidationSet.cpp
diff --git a/Source/core/css/analyzer/DescendantInvalidationSet.cpp b/Source/core/css/analyzer/DescendantInvalidationSet.cpp
index 6249f197e84095c9c95f51e3d1ec75114840cdb6..6695f4e55740fa73ddaed0549219c1fa8ab4be4c 100644
--- a/Source/core/css/analyzer/DescendantInvalidationSet.cpp
+++ b/Source/core/css/analyzer/DescendantInvalidationSet.cpp
@@ -76,4 +76,11 @@ void DescendantInvalidationSet::addTagName(const AtomicString& tagName)
m_tagNames.add(tagName);
}
+void DescendantInvalidationSet::getClasses(Vector<AtomicString>& classes)
+{
+ for (HashSet<AtomicString>::const_iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
+ classes.append(*it);
+ }
+}
+
} // namespace WebCore

Powered by Google App Engine