Index: Source/core/page/scrolling/ScrollingCoordinator.cpp |
diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp |
index e9f01bf4c49ee77a7c32a8a8b36e23da1fe12952..2401a94f6782c973cc79967ea915897d18b2d433 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); |