| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index 6dfb08aa3c2c651ec64586430ac7b64ccfcab7cf..2b4ac4d070fd24da97931373d6be25142c4dab62 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -1271,7 +1271,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())))
|
|
|