| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index fb9fad2649cbbaddd18fc89156db0046fbf35146..eaee5bb0defc939b24441d3551898845c4785322 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -1279,7 +1279,7 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
|
| // Unfortunately the link status is treated like an inherited property. We need to explicitly restore it.
|
| state.style()->setInsideLink(linkStatus);
|
|
|
| - if (RuntimeEnabledFeatures::webAnimationsCSSEnabled()
|
| + if (RuntimeEnabledFeatures::webAnimationsCSSEnabled() && animatingElement
|
| && (animatingElement->hasActiveAnimations()
|
| || (state.style()->transitions() && !state.style()->transitions()->isEmpty())
|
| || (state.style()->animations() && !state.style()->animations()->isEmpty())))
|
|
|