Index: Source/core/css/RuleFeature.cpp |
diff --git a/Source/core/css/RuleFeature.cpp b/Source/core/css/RuleFeature.cpp |
index 32df831c40f09f1a4ba62e9e28b5eb67afcbfd2e..748d50f8aaf8f01f8c118f61feade5189908a0fd 100644 |
--- a/Source/core/css/RuleFeature.cpp |
+++ b/Source/core/css/RuleFeature.cpp |
@@ -52,6 +52,16 @@ static bool isSkippableComponentForInvalidation(const CSSSelector& selector) |
|| selector.m_match == CSSSelector::Id |
|| selector.isAttributeSelector()) |
return true; |
+ if (selector.m_match == CSSSelector::PseudoElement) { |
+ switch (selector.m_pseudoType) { |
+ case CSSSelector::PseudoBefore: |
+ case CSSSelector::PseudoAfter: |
+ case CSSSelector::PseudoBackdrop: |
+ return true; |
+ default: |
+ return false; |
+ } |
+ } |
if (selector.m_match != CSSSelector::PseudoClass) |
return false; |
switch (selector.pseudoType()) { |