Index: Source/core/css/resolver/StyleAdjuster.cpp |
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp |
index 5ba4a8856b3e9f12261e8f555ab2cdc4b6bfea86..5348d7e10ee34ae8f51bc7d8589d26d427a012f5 100644 |
--- a/Source/core/css/resolver/StyleAdjuster.cpp |
+++ b/Source/core/css/resolver/StyleAdjuster.cpp |
@@ -166,8 +166,11 @@ static bool hasWillChangeThatCreatesStackingContext(const RenderStyle* style, El |
for (size_t i = 0; i < style->willChangeProperties().size(); ++i) { |
switch (style->willChangeProperties()[i]) { |
case CSSPropertyOpacity: |
+ case CSSPropertyTransform: |
case CSSPropertyWebkitTransform: |
+ case CSSPropertyTransformStyle: |
case CSSPropertyWebkitTransformStyle: |
+ case CSSPropertyPerspective: |
case CSSPropertyWebkitPerspective: |
case CSSPropertyWebkitMask: |
case CSSPropertyWebkitMaskBoxImage: |
@@ -236,7 +239,7 @@ void StyleAdjuster::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty |
// will-change:transform should result in the same rendering behavior as having a transform, |
// including the creation of a containing block for fixed position descendants. |
- if (!style->hasTransform() && style->willChangeProperties().contains(CSSPropertyWebkitTransform)) { |
+ if (!style->hasTransform() && (style->willChangeProperties().contains(CSSPropertyWebkitTransform) || style->willChangeProperties().contains(CSSPropertyTransform))) { |
bool makeIdentity = true; |
style->setTransform(TransformOperations(makeIdentity)); |
} |