| Index: Source/core/rendering/RenderLayer.cpp
|
| diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
|
| index d527762e5dcfe58dffdcd23260a92f0a65e73fc7..7cfdaed01cfbd34a6b52f1089c9fcd3e87517071 100644
|
| --- a/Source/core/rendering/RenderLayer.cpp
|
| +++ b/Source/core/rendering/RenderLayer.cpp
|
| @@ -3338,6 +3338,30 @@ CompositedLayerMappingPtr RenderLayer::compositedLayerMapping() const
|
| return m_compositedLayerMapping.get();
|
| }
|
|
|
| +GraphicsLayer* RenderLayer::graphicsLayerBacking() const
|
| +{
|
| + switch (compositingState()) {
|
| + case NotComposited:
|
| + return 0;
|
| + case PaintsIntoGroupedBacking:
|
| + return groupedMapping()->squashingLayer();
|
| + default:
|
| + return compositedLayerMapping()->mainGraphicsLayer();
|
| + }
|
| +}
|
| +
|
| +GraphicsLayer* RenderLayer::graphicsLayerBackingForScrolling() const
|
| +{
|
| + switch (compositingState()) {
|
| + case NotComposited:
|
| + return 0;
|
| + case PaintsIntoGroupedBacking:
|
| + return groupedMapping()->squashingLayer();
|
| + default:
|
| + return compositedLayerMapping()->scrollingContentsLayer() ? compositedLayerMapping()->scrollingContentsLayer() : compositedLayerMapping()->mainGraphicsLayer();
|
| + }
|
| +}
|
| +
|
| CompositedLayerMappingPtr RenderLayer::ensureCompositedLayerMapping()
|
| {
|
| if (!m_compositedLayerMapping) {
|
|
|