Prepare scrolling tree to handle > 1 scrolling node
[WebKit-https.git] / Source / WebKit2 / UIProcess / Scrolling / RemoteScrollingTree.cpp
index fb4624f..2317d15 100644 (file)
@@ -76,10 +76,9 @@ void RemoteScrollingTree::handleWheelEventPhase(PlatformWheelEventPhase phase)
 }
 #endif
 
-void RemoteScrollingTree::updateMainFrameScrollPosition(const IntPoint& scrollPosition, SetOrSyncScrollingLayerPosition)
+void RemoteScrollingTree::scrollingTreeNodeDidScroll(ScrollingNodeID nodeID, const IntPoint& scrollPosition, SetOrSyncScrollingLayerPosition)
 {
-    // FIXME: fix for all scrolling nodes.
-    m_scrollingCoordinatorProxy.scrollPositionChanged(rootNode()->scrollingNodeID(), scrollPosition);
+    m_scrollingCoordinatorProxy.scrollPositionChanged(nodeID, scrollPosition);
 }
 
 PassOwnPtr<ScrollingTreeNode> RemoteScrollingTree::createNode(ScrollingNodeType nodeType, ScrollingNodeID nodeID)