| Index: Source/core/rendering/RenderLayerBacking.h
|
| diff --git a/Source/core/rendering/RenderLayerBacking.h b/Source/core/rendering/RenderLayerBacking.h
|
| index 7a62c3cbfd5bc5ad8c95a4386452653fae7a4763..85c698a666e82faf938b791aa10d972b20ea73f9 100644
|
| --- a/Source/core/rendering/RenderLayerBacking.h
|
| +++ b/Source/core/rendering/RenderLayerBacking.h
|
| @@ -94,9 +94,12 @@ public:
|
| GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get(); }
|
|
|
| // Layer to get clipped by ancestor
|
| - bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer != 0; }
|
| + bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer; }
|
| GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLayer.get(); }
|
|
|
| + bool hasAncestorScrollClippingLayer() const { return m_ancestorScrollClippingLayer; }
|
| + GraphicsLayer* ancestorScrollClippingLayer() const { return m_ancestorScrollClippingLayer.get(); }
|
| +
|
| bool hasContentsLayer() const { return m_foregroundLayer != 0; }
|
| GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); }
|
|
|
| @@ -187,7 +190,7 @@ private:
|
| RenderLayerCompositor* compositor() const { return m_owningLayer->compositor(); }
|
|
|
| void updateInternalHierarchy();
|
| - bool updateClippingLayers(bool needsAncestorClip, bool needsDescendantClip);
|
| + bool updateClippingLayers(bool needsAncestorClip, bool needsDescendantClip, bool needsScrollClip);
|
| bool updateOverflowControlsLayers(bool needsHorizontalScrollbarLayer, bool needsVerticalScrollbarLayer, bool needsScrollCornerLayer);
|
| bool updateForegroundLayer(bool needsForegroundLayer);
|
| bool updateBackgroundLayer(bool needsBackgroundLayer);
|
| @@ -196,6 +199,8 @@ private:
|
| bool requiresVerticalScrollbarLayer() const { return m_owningLayer->verticalScrollbar(); }
|
| bool requiresScrollCornerLayer() const { return !m_owningLayer->scrollCornerAndResizerRect().isEmpty(); }
|
| bool updateScrollingLayers(bool scrollingLayers);
|
| + void updateScrollParent();
|
| + void updateClipParent();
|
| void updateDrawsContent(bool isSimpleContainer);
|
| void registerScrollingLayers();
|
|
|
| @@ -246,6 +251,7 @@ private:
|
| RenderLayer* m_owningLayer;
|
|
|
| OwnPtr<GraphicsLayer> m_ancestorClippingLayer; // Only used if we are clipped by an ancestor which is not a stacking context.
|
| + OwnPtr<GraphicsLayer> m_ancestorScrollClippingLayer; // Only used if we have a scroll parent, and our clipping ancestor is not our scroll parent.
|
| OwnPtr<GraphicsLayer> m_graphicsLayer;
|
| OwnPtr<GraphicsLayer> m_foregroundLayer; // Only used in cases where we need to draw the foreground separately.
|
| OwnPtr<GraphicsLayer> m_backgroundLayer; // Only used in cases where we need to draw the background separately.
|
| @@ -259,8 +265,6 @@ private:
|
| OwnPtr<GraphicsLayer> m_scrollingLayer; // Only used if the layer is using composited scrolling.
|
| OwnPtr<GraphicsLayer> m_scrollingContentsLayer; // Only used if the layer is using composited scrolling.
|
|
|
| - uint64_t m_scrollLayerID;
|
| -
|
| IntRect m_compositedBounds;
|
|
|
| bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to make transform-origin work
|
|
|