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

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

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/StyleInvalidator.cpp
diff --git a/Source/core/css/invalidation/StyleInvalidator.cpp b/Source/core/css/invalidation/StyleInvalidator.cpp
index fe400494f515777168ffb5def3c8e6dbd9129aff..00a82dc7d8ce873117cf0181c1e7a60a7ede05bc 100644
--- a/Source/core/css/invalidation/StyleInvalidator.cpp
+++ b/Source/core/css/invalidation/StyleInvalidator.cpp
@@ -34,6 +34,7 @@ void StyleInvalidator::RecursionData::pushInvalidationSet(const DescendantInvali
{
invalidationSet.getClasses(m_invalidationClasses);
invalidationSet.getAttributes(m_invalidationAttributes);
+ m_invalidateCustomPseudo = invalidationSet.customPseudoInvalid();
m_foundInvalidationSet = true;
}
@@ -52,6 +53,8 @@ bool StyleInvalidator::RecursionData::matchesCurrentInvalidationSets(Element& el
return true;
}
}
+ if (m_invalidateCustomPseudo && element.shadowPseudoId() != nullAtom)
+ return true;
return false;
}
« Source/core/css/RuleFeature.cpp ('K') | « Source/core/css/invalidation/StyleInvalidator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698