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 f760f4c05c473670efff8a3d7e8f2dba5f5de787..206441579efdc8ea113ffa3917ac45b1d3be5f96 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; |