Index: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
index 9d584a4a6caa665d2a41eeffbbe769a7faa1e1e8..e1295495c5c7137fc1033cd958aa1c2c2558950f 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
@@ -203,7 +203,8 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl |
|| style.hasIsolation() |
|| style.position() == FixedPosition |
|| isInTopLayer(element, style) |
- || hasWillChangeThatCreatesStackingContext(style))) |
+ || hasWillChangeThatCreatesStackingContext(style) |
+ || style.containsPaint())) |
style.setZIndex(0); |
if (doesNotInheritTextDecoration(style, element)) |