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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2532223003: Forces stacking context for computed value of transform-style:preserve-3d (Closed)
Patch Set: Created 4 years, 1 month 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index a88aa09eb673ebed99c822e09b94e6bea910bead..9441ff8be8857be296e8fe1c7ea406555683c522 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1207,6 +1207,14 @@ void ComputedStyle::updateIsStackingContext(bool isDocumentElement,
if (isStackingContext())
return;
+ // Used value of transform-style other than 'flat' already forces stacking
chrishtr 2016/11/29 04:54:02 Suggest rephrasing for clarity: "Force a stacking
trchen 2016/11/30 01:26:23 Done.
+ // context. This line checks the computed value in addition to used value to
+ // match behavior prior to M53. More info at crbug.com/663650 .
+ if (transformStyle3D() == TransformStyle3DPreserve3D) {
+ setIsStackingContext(true);
+ return;
+ }
+
if (isDocumentElement || isInTopLayer || styleType() == PseudoIdBackdrop ||
hasOpacity() || hasTransformRelatedProperty() || hasMask() ||
clipPath() || boxReflect() || hasFilterInducingProperty() ||

Powered by Google App Engine
This is Rietveld 408576698