| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index 0b7fed403e24beea4efa5379bc0cbf167b76ec87..a94c4c6d9770781b6cbfecfad8162e1ff0f0a7a9 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -1343,7 +1343,7 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
|
| bool applyInheritedOnly = false;
|
| const CachedMatchedProperties* cachedMatchedProperties = cacheHash ? m_matchedPropertiesCache.find(cacheHash, state, matchResult.matchedProperties()) : 0;
|
|
|
| - if (cachedMatchedProperties && MatchedPropertiesCache::isCacheable(element, *state.style(), *state.parentStyle())) {
|
| + if (cachedMatchedProperties && MatchedPropertiesCache::isCacheable(*state.style(), *state.parentStyle())) {
|
| INCREMENT_STYLE_STATS_COUNTER(*this, matchedPropertyCacheHit, 1);
|
| // We can build up the style by copying non-inherited properties from an earlier style object built using the same exact
|
| // style declarations. We then only need to apply the inherited properties, if any, as their values can depend on the
|
| @@ -1423,7 +1423,7 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
|
|
|
| loadPendingResources(state);
|
|
|
| - if (!cachedMatchedProperties && cacheHash && MatchedPropertiesCache::isCacheable(element, *state.style(), *state.parentStyle())) {
|
| + if (!cachedMatchedProperties && cacheHash && MatchedPropertiesCache::isCacheable(*state.style(), *state.parentStyle())) {
|
| INCREMENT_STYLE_STATS_COUNTER(*this, matchedPropertyCacheAdded, 1);
|
| m_matchedPropertiesCache.add(*state.style(), *state.parentStyle(), cacheHash, matchResult.matchedProperties());
|
| }
|
|
|