| Index: Source/core/css/resolver/MatchedPropertiesCache.cpp
|
| diff --git a/Source/core/css/resolver/MatchedPropertiesCache.cpp b/Source/core/css/resolver/MatchedPropertiesCache.cpp
|
| index 1b0946d534fff02975249dcdfa95c1f763ca5afe..e989c67ed269629408458157aff6461c3ba563d2 100644
|
| --- a/Source/core/css/resolver/MatchedPropertiesCache.cpp
|
| +++ b/Source/core/css/resolver/MatchedPropertiesCache.cpp
|
| @@ -125,6 +125,9 @@ bool MatchedPropertiesCache::isCacheable(const Element* element, const RenderSty
|
| return false;
|
| if (style->writingMode() != RenderStyle::initialWritingMode())
|
| return false;
|
| + // CSSPropertyInternalCallback sets the rule's selector name into the RenderStyle, and that's not recalculated if the RenderStyle is loaded from the cache, so don't cache it.
|
| + if (!style->callbackSelectors().isEmpty())
|
| + return false;
|
| // The cache assumes static knowledge about which properties are inherited.
|
| if (parentStyle->hasExplicitlyInheritedProperties())
|
| return false;
|
|
|