Index: Source/core/css/resolver/StyleAdjuster.cpp |
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp |
index c364b0db535fa8993c5a3b4f7ffdb48e5f9f9f44..5cc0735a0b0b9db9a2744fa475559c006d855f3d 100644 |
--- a/Source/core/css/resolver/StyleAdjuster.cpp |
+++ b/Source/core/css/resolver/StyleAdjuster.cpp |
@@ -162,7 +162,7 @@ static bool parentStyleForcesZIndexToCreateStackingContext(const RenderStyle* pa |
return isDisplayFlexibleBox(parentStyle->display()) || isDisplayGridBox(parentStyle->display()); |
} |
-static bool hasWillChangeThatCreatesStackingContext(const RenderStyle* style, Element* e) |
+static bool hasWillChangeThatCreatesStackingContext(const RenderStyle* style) |
{ |
for (size_t i = 0; i < style->willChangeProperties().size(); ++i) { |
switch (style->willChangeProperties()[i]) { |
@@ -234,7 +234,7 @@ void StyleAdjuster::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty |
|| style->position() == StickyPosition |
|| style->position() == FixedPosition |
|| isInTopLayer(e, style) |
- || hasWillChangeThatCreatesStackingContext(style, e))) |
+ || hasWillChangeThatCreatesStackingContext(style))) |
style->setZIndex(0); |
// will-change:transform should result in the same rendering behavior as having a transform, |