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

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

Issue 381873002: Implemented method for printing invalidation sets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments Created 6 years, 5 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/invalidation/DescendantInvalidationSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/invalidation/DescendantInvalidationSet.cpp
diff --git a/Source/core/css/invalidation/DescendantInvalidationSet.cpp b/Source/core/css/invalidation/DescendantInvalidationSet.cpp
index 6f1be3b13bf3acc04cbc21124ea902456e9ea2d7..f1db5e1cd35acdb005c089a0127eec39602f23e2 100644
--- a/Source/core/css/invalidation/DescendantInvalidationSet.cpp
+++ b/Source/core/css/invalidation/DescendantInvalidationSet.cpp
@@ -193,4 +193,34 @@ void DescendantInvalidationSet::trace(Visitor* visitor)
#endif
}
+#ifndef NDEBUG
+void DescendantInvalidationSet::show() const
+{
+ fprintf(stderr, "DescendantInvalidationSet { ");
+ if (m_allDescendantsMightBeInvalid)
+ fprintf(stderr, "* ");
+ if (m_customPseudoInvalid)
+ fprintf(stderr, "::custom ");
+ if (m_treeBoundaryCrossing)
+ fprintf(stderr, "::shadow/deep/ ");
+ if (m_ids) {
+ for (WillBeHeapHashSet<AtomicString>::const_iterator it = m_ids->begin(); it != m_ids->end(); ++it)
+ fprintf(stderr, "#%s ", (*it).ascii().data());
+ }
+ if (m_classes) {
+ for (WillBeHeapHashSet<AtomicString>::const_iterator it = m_classes->begin(); it != m_classes->end(); ++it)
+ fprintf(stderr, ".%s ", (*it).ascii().data());
+ }
+ if (m_tagNames) {
+ for (WillBeHeapHashSet<AtomicString>::const_iterator it = m_tagNames->begin(); it != m_tagNames->end(); ++it)
+ fprintf(stderr, "<%s> ", (*it).ascii().data());
+ }
+ if (m_attributes) {
+ for (WillBeHeapHashSet<AtomicString>::const_iterator it = m_attributes->begin(); it != m_attributes->end(); ++it)
+ fprintf(stderr, "[%s] ", (*it).ascii().data());
+ }
+ fprintf(stderr, "}\n");
+}
+#endif // NDEBUG
+
} // namespace WebCore
« no previous file with comments | « Source/core/css/invalidation/DescendantInvalidationSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698