Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index 9137ecf1dc9429612d281307f6f2dbf45e1b35a7..996643f530660368f1f890b096a58fb8b90e312b 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -108,7 +108,7 @@ PaintLayerType LayoutBox::layerTypeRequired() const |
// position:static elements that are not flex-items get their z-index coerced to auto. |
if (isPositioned() || createsGroup() || hasClipPath() || hasTransformRelatedProperty() |
|| style()->hasCompositorProxy() || hasHiddenBackface() || hasReflection() || style()->specifiesColumns() |
- || !style()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimations()) |
+ || style()->isStackingContext() || style()->shouldCompositeForCurrentAnimations()) |
return NormalPaintLayer; |
if (hasOverflowClip()) |
@@ -1388,7 +1388,7 @@ static bool isCandidateForOpaquenessTest(const LayoutBox& childBox) |
if (childLayer->compositingState() != NotComposited) |
return false; |
// FIXME: Deal with z-index. |
- if (!childStyle.hasAutoZIndex()) |
+ if (childStyle.isStackingContext()) |
return false; |
if (childLayer->hasTransformRelatedProperty() || childLayer->isTransparent() || childLayer->hasFilterInducingProperty()) |
return false; |