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

Unified Diff: Source/core/rendering/RenderLayer.h

Issue 20103002: Make composited scrolling codepaths co-operate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline TestExpectations Created 7 years, 2 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
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698