| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index 9ef098decd20a0d3ba192f02d25b35f67ba5364f..a66ed4a26c9bd26f8fa9b4b52069494075e42e39 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -1357,7 +1357,8 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
|
| // style declarations. We then only need to apply the inherited properties, if any, as their values can depend on the
|
| // element context. This is fast and saves memory by reusing the style data structures.
|
| state.style()->copyNonInheritedFrom(cachedMatchedProperties->renderStyle.get());
|
| - if (state.parentStyle()->inheritedDataShared(cachedMatchedProperties->parentRenderStyle.get()) && !isAtShadowBoundary(element)) {
|
| + if (state.parentStyle()->inheritedDataShared(cachedMatchedProperties->parentRenderStyle.get()) && !isAtShadowBoundary(element)
|
| + && (!state.distributedToInsertionPoint() || state.style()->userModify() == READ_ONLY)) {
|
| INCREMENT_STYLE_STATS_COUNTER(*this, matchedPropertyCacheInheritedHit);
|
|
|
| EInsideLink linkStatus = state.style()->insideLink();
|
|
|