| Index: Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| index 6d703290a3ffd57f8fb8c30dadd81bbd33f4e26a..2fc804755ac2531a01593856db6a06e84bee33db 100644
|
| --- a/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -511,6 +511,32 @@ void ScrollingCoordinator::touchEventTargetRectsDidChange(const Document*)
|
| setTouchEventTargetRects(touchEventTargetRects);
|
| }
|
|
|
| +void ScrollingCoordinator::updateScrollParentForLayer(RenderLayer* child, RenderLayer* parent)
|
| +{
|
| + WebLayer* childWebLayer = scrollingWebLayerForGraphicsLayer(child->layerForScrollChild());
|
| + if (!childWebLayer)
|
| + return;
|
| +
|
| + WebLayer* scrollParentWebLayer = 0;
|
| + if (parent && parent->backing())
|
| + scrollParentWebLayer = scrollingWebLayerForGraphicsLayer(parent->backing()->parentForSublayers());
|
| +
|
| + childWebLayer->setScrollParent(scrollParentWebLayer);
|
| +}
|
| +
|
| +void ScrollingCoordinator::updateClipParentForLayer(RenderLayer* child, RenderLayer* parent)
|
| +{
|
| + WebLayer* childWebLayer = scrollingWebLayerForGraphicsLayer(child->backing()->graphicsLayer());
|
| + if (!childWebLayer)
|
| + return;
|
| +
|
| + WebLayer* clipParentWebLayer = 0;
|
| + if (parent && parent->backing())
|
| + clipParentWebLayer = scrollingWebLayerForGraphicsLayer(parent->backing()->parentForSublayers());
|
| +
|
| + childWebLayer->setClipParent(clipParentWebLayer);
|
| +}
|
| +
|
| void ScrollingCoordinator::willDestroyRenderLayer(RenderLayer* layer)
|
| {
|
| m_layersWithTouchRects.remove(layer);
|
|
|