Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
index cb416dca18088a6b66608b98352cce926530b206..6e314201430751f67ec3128ea5f35183dc236491 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
@@ -149,7 +149,7 @@ void LayoutBoxModelObject::styleWillChange(StyleDifference diff, const ComputedS |
if (hasLayer() |
&& enclosingLayer()->stackingNode() |
&& enclosingLayer()->stackingNode()->isStackingContext() |
- && newStyle.hasAutoZIndex()) { |
+ && !newStyle.isStackingContext()) { |
// The following disablers are valid because we need to invalidate based on the current |
// status. |
DisableCompositingQueryAsserts compositingDisabler; |