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

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

Issue 179483002: Made setWholeSubtreeInvalid non-inline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/css/analyzer/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/analyzer/DescendantInvalidationSet.cpp
diff --git a/Source/core/css/analyzer/DescendantInvalidationSet.cpp b/Source/core/css/analyzer/DescendantInvalidationSet.cpp
index 8a4aa57278870684f6b4efb9aa1152d748ea8673..5dd11f92160fc624e143f06eb62e2d4edac98780 100644
--- a/Source/core/css/analyzer/DescendantInvalidationSet.cpp
+++ b/Source/core/css/analyzer/DescendantInvalidationSet.cpp
@@ -121,4 +121,15 @@ void DescendantInvalidationSet::getClasses(Vector<AtomicString>& classes) const
classes.append(*it);
}
+void DescendantInvalidationSet::setWholeSubtreeInvalid()
+{
+ if (m_allDescendantsMightBeInvalid)
+ return;
+
+ m_allDescendantsMightBeInvalid = true;
+ m_classes = nullptr;
+ m_ids = nullptr;
+ m_tagNames = nullptr;
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/css/analyzer/DescendantInvalidationSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698