[BlackBerry] Implement ScrollingCoordinator::frameViewLayoutUpdated()
[WebKit-https.git] / Source / WebCore / page / scrolling / blackberry / ScrollingCoordinatorBlackBerry.cpp
index edc5783ed58600aab01affa3255f2b8c85be3b2d..39d902711c84184f55867c971fd680c685ad939e 100644 (file)
@@ -67,16 +67,12 @@ void ScrollingCoordinatorBlackBerry::setLayerFixedToContainerLayerEdge(GraphicsL
     layer->platformLayer()->setFixedToLeft(fixedToLeft);
 }
 
-void ScrollingCoordinatorBlackBerry::frameViewFrameRectDidChange(FrameView* view)
+void ScrollingCoordinatorBlackBerry::frameViewLayoutUpdated(FrameView* frameView)
 {
-    if (GraphicsLayer* scrollLayer = scrollLayerForFrameView(view))
-        scrollLayer->platformLayer()->setFrameVisibleRect(view->visibleContentRect());
-}
-
-void ScrollingCoordinatorBlackBerry::frameViewContentsSizeDidChange(FrameView* view)
-{
-    if (GraphicsLayer* scrollLayer = scrollLayerForFrameView(view))
-        scrollLayer->platformLayer()->setFrameContentsSize(view->contentsSize());
+    if (GraphicsLayer* scrollLayer = scrollLayerForFrameView(frameView)) {
+        scrollLayer->platformLayer()->setFrameContentsSize(frameView->contentsSize());
+        scrollLayer->platformLayer()->setFrameVisibleRect(frameView->visibleContentRect());
+    }
 }
 
 }