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

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

Issue 219193004: Custom pseudo element types as an invalidation set feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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.h
diff --git a/Source/core/css/invalidation/DescendantInvalidationSet.h b/Source/core/css/invalidation/DescendantInvalidationSet.h
index 93c18e6baefecd80c221924bc36ef248a00c865c..92646fcb680ace3b847b6ac98efe94dd5dc1cfae 100644
--- a/Source/core/css/invalidation/DescendantInvalidationSet.h
+++ b/Source/core/css/invalidation/DescendantInvalidationSet.h
@@ -66,6 +66,10 @@ public:
void setWholeSubtreeInvalid();
bool wholeSubtreeInvalid() const { return m_allDescendantsMightBeInvalid; }
+
+ void setCustomPseudoInvalid() { m_customPseudoInvalid = true; }
+ bool customPseudoInvalid() const { return m_customPseudoInvalid; }
+
private:
DescendantInvalidationSet();
@@ -77,6 +81,9 @@ private:
// If true, all descendants might be invalidated, so a full subtree recalc is required.
bool m_allDescendantsMightBeInvalid;
+ // If true, all descendants which are custom pseudo elements must be invalidated.
+ bool m_customPseudoInvalid;
+
// FIXME: optimize this if it becomes a memory issue.
OwnPtr<HashSet<AtomicString> > m_classes;
OwnPtr<HashSet<AtomicString> > m_ids;

Powered by Google App Engine
This is Rietveld 408576698