Index: Source/core/rendering/RenderLayer.h |
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h |
index 4089b4b7764540442854ce80152822f897ce0d0e..672fbde2896cf35f856717300443471b83efdc9d 100644 |
--- a/Source/core/rendering/RenderLayer.h |
+++ b/Source/core/rendering/RenderLayer.h |
@@ -475,6 +475,7 @@ public: |
CompositedLayerMapping* ensureCompositedLayerMapping(); |
void clearCompositedLayerMapping(bool layerBeingDestroyed = false); |
+ bool adjustForForceCompositedScrollingMode(bool) const; |
bool hasCompositedMask() const; |
bool hasCompositedClippingMask() const; |
@@ -599,7 +600,7 @@ private: |
// FIXME: This is a temporary flag and should be removed once accelerated |
// overflow scroll is ready (crbug.com/254111). |
bool compositorDrivenAcceleratedScrollingEnabled() const; |
- void updateCanBeStackingContainer(); |
+ void updateDescendantsAreContiguousInStackingOrder(); |
void collectBeforePromotionZOrderList(RenderLayer* ancestorStackingContext, OwnPtr<Vector<RenderLayer*> >& posZOrderListBeforePromote, OwnPtr<Vector<RenderLayer*> >& negZOrderListBeforePromote); |
void collectAfterPromotionZOrderList(RenderLayer* ancestorStackingContext, OwnPtr<Vector<RenderLayer*> >& posZOrderListAfterPromote, OwnPtr<Vector<RenderLayer*> >& negZOrderListAfterPromote); |
@@ -617,7 +618,8 @@ private: |
void updateOutOfFlowPositioned(const RenderStyle* oldStyle); |
- void setNeedsCompositedScrolling(bool); |
+ bool setNeedsCompositedScrolling(bool); |
+ bool setNeedsToBeStackingContainer(bool); |
void didUpdateNeedsCompositedScrolling(); |
// Returns true if the position changed. |
@@ -821,7 +823,7 @@ private: |
CompositingReasons compositingReasons() const { return m_compositingProperties.compositingReasons; } |
// Returns true if z ordering would not change if this layer were a stacking container. |
- bool canBeStackingContainer() const; |
+ bool descendantsAreContiguousInStackingOrder() const; |
friend class CompositedLayerMapping; |
friend class RenderLayerCompositor; |
@@ -853,16 +855,18 @@ protected: |
unsigned m_isUnclippedDescendant : 1; |
unsigned m_needsCompositedScrolling : 1; |
- unsigned m_needsCompositedScrollingHasBeenRecorded : 1; |
+ unsigned m_needsToBeStackingContainerHasBeenRecorded : 1; |
unsigned m_willUseCompositedScrollingHasBeenRecorded : 1; |
unsigned m_isScrollableAreaHasBeenRecorded : 1; |
+ unsigned m_needsToBeStackingContainer : 1; |
+ |
// If this is true, then no non-descendant appears between any of our |
// descendants in stacking order. This is one of the requirements of being |
// able to safely become a stacking context. |
- unsigned m_canBePromotedToStackingContainer : 1; |
- unsigned m_canBePromotedToStackingContainerDirty : 1; |
+ unsigned m_descendantsAreContiguousInStackingOrder : 1; |
+ unsigned m_descendantsAreContiguousInStackingOrderDirty : 1; |
const unsigned m_isRootLayer : 1; |