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

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

Issue 946993002: Avoid style invalidation for empty sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added dummy selectors to tests to force descendant invalidation Created 5 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
Index: Source/core/css/invalidation/DescendantInvalidationSet.cpp
diff --git a/Source/core/css/invalidation/DescendantInvalidationSet.cpp b/Source/core/css/invalidation/DescendantInvalidationSet.cpp
index 75929b0bdbb58c885ebdb2384c529263b8f9e89d..a4707e61ae8999f8a0ecfb6b59a4bd9ba1bad065 100644
--- a/Source/core/css/invalidation/DescendantInvalidationSet.cpp
+++ b/Source/core/css/invalidation/DescendantInvalidationSet.cpp
@@ -199,6 +199,7 @@ void DescendantInvalidationSet::setWholeSubtreeInvalid()
return;
m_allDescendantsMightBeInvalid = true;
+ m_customPseudoInvalid = false;
m_treeBoundaryCrossing = false;
m_insertionPointCrossing = false;
m_classes = nullptr;

Powered by Google App Engine
This is Rietveld 408576698