| Index: third_party/WebKit/Source/core/style/ComputedStyle.h
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| index 5fcda23f6e5c1630ac1fab03817ed21f1bdbe3d9..658a77520496bec582c23d36e5a907209f444b41 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| @@ -1275,10 +1275,12 @@ public:
|
|
|
| // A stacking context is painted atomically and defines a stacking order, whereas
|
| // a containing stacking context defines in which order the stacking contexts
|
| - // below are painted. In Blink, a stacking context is defined by non-auto
|
| - // z-index'. This invariant is enforced by the logic in StyleAdjuster
|
| + // below are painted.
|
| // See CSS 2.1, Appendix E (https://www.w3.org/TR/CSS21/zindex.html) for more details.
|
| - bool isStackingContext() const { return !hasAutoZIndex(); }
|
| + bool isStackingContext() const { return rareNonInheritedData->m_isStackingContext; }
|
| +
|
| + void updateIsStackingContext(bool isDocumentElement, bool isInTopLayer);
|
| + void setIsStackingContext(bool b) { SET_VAR(rareNonInheritedData, m_isStackingContext, b); }
|
|
|
| // Stacking contexts and positioned elements[1] are stacked (sorted in negZOrderList
|
| // and posZOrderList) in their enclosing stacking contexts.
|
|
|