Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2047283002: Avoid touching z-index in StyleAdjuster by using an isStackingContext flag instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update old z-index stacking context test Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698