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

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

Issue 220123004: Add support for element ids in TargetedStyleRecalc (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust test. 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
Index: Source/core/css/invalidation/DescendantInvalidationSet.cpp
diff --git a/Source/core/css/invalidation/DescendantInvalidationSet.cpp b/Source/core/css/invalidation/DescendantInvalidationSet.cpp
index 18bd5b630b493a8274db71cdfbbba6579fc8b562..e378c194610e672f73ab43df5257ca7b26a5cb02 100644
--- a/Source/core/css/invalidation/DescendantInvalidationSet.cpp
+++ b/Source/core/css/invalidation/DescendantInvalidationSet.cpp
@@ -153,6 +153,14 @@ void DescendantInvalidationSet::getAttributes(Vector<AtomicString>& attributes)
attributes.append(*it);
}
+void DescendantInvalidationSet::getIds(Vector<AtomicString>& ids) const
+{
+ if (!m_ids)
+ return;
+ for (HashSet<AtomicString>::const_iterator it = m_ids->begin(); it != m_ids->end(); ++it)
+ ids.append(*it);
+}
+
void DescendantInvalidationSet::setWholeSubtreeInvalid()
{
if (m_allDescendantsMightBeInvalid)
« no previous file with comments | « Source/core/css/invalidation/DescendantInvalidationSet.h ('k') | Source/core/css/invalidation/StyleInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698