Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index 0d1fee7613ff961804fd83deda36a2003401c239..4094b231fa454ecaba34ca859fe93a9155d374d5 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -1084,7 +1084,7 @@ void StyleResolver::applyAnimatedProperties(StyleResolverState& state, Element* |
// the style to impose the stacking rules. Note that this is also |
// done in StyleResolver::adjustRenderStyle(). |
RenderStyle* style = state.style(); |
- if (style->hasAutoZIndex() && (style->opacity() < 1.0f || style->hasTransform())) |
+ if (style->hasAutoZIndex() && (style->opacity() < 1.0f || style->hasTransformRelatedProperty())) |
style->setZIndex(0); |
// Start loading resources used by animations. |