Changeset 197825 in webkit
- Timestamp:
- Mar 8, 2016, 6:05:13 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r197816 r197825 1 2016-03-08 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Delete dead scrolling code 4 https://bugs.webkit.org/show_bug.cgi?id=155210 5 6 Reviewed by Simon Fraser. 7 8 No new tests because there is no behavior change. 9 10 * page/FrameView.cpp: 11 (WebCore::FrameView::layerForScrolling): Deleted. 12 * page/FrameView.h: 13 * page/scrolling/ScrollingCoordinator.cpp: 14 (WebCore::ScrollingCoordinator::scrollLayerForScrollableArea): Deleted. 15 * page/scrolling/ScrollingCoordinator.h: 16 * platform/ScrollableArea.h: 17 (WebCore::ScrollableArea::horizontalScrollbar): 18 (WebCore::ScrollableArea::verticalScrollbar): 19 (WebCore::ScrollableArea::tiledBacking): 20 (WebCore::ScrollableArea::layerForHorizontalScrollbar): 21 (WebCore::ScrollableArea::layerForVerticalScrollbar): 22 (WebCore::ScrollableArea::layerForScrollCorner): 23 (WebCore::ScrollableArea::layerForOverhangAreas): 24 (WebCore::ScrollableArea::layerForScrolling): Deleted. 25 * rendering/RenderLayer.cpp: 26 (WebCore::RenderLayer::calculateClipRects): Deleted. 27 * rendering/RenderLayer.h: 28 1 29 2016-03-08 Oliver Hunt <oliver@apple.com> 2 30 -
trunk/Source/WebCore/page/FrameView.cpp
r197594 r197825 853 853 } 854 854 855 GraphicsLayer* FrameView::layerForScrolling() const856 {857 RenderView* renderView = this->renderView();858 if (!renderView)859 return nullptr;860 return renderView->compositor().scrollLayer();861 }862 863 855 GraphicsLayer* FrameView::layerForHorizontalScrollbar() const 864 856 { -
trunk/Source/WebCore/page/FrameView.h
r197563 r197825 627 627 IntRect scrollableAreaBoundingBox(bool* = nullptr) const override; 628 628 bool scrollAnimatorEnabled() const override; 629 GraphicsLayer* layerForScrolling() const override;630 629 GraphicsLayer* layerForHorizontalScrollbar() const override; 631 630 GraphicsLayer* layerForVerticalScrollbar() const override; -
trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
r194405 r197825 210 210 } 211 211 212 GraphicsLayer* ScrollingCoordinator::scrollLayerForScrollableArea(ScrollableArea& scrollableArea)213 {214 return scrollableArea.layerForScrolling();215 }216 217 212 GraphicsLayer* ScrollingCoordinator::scrollLayerForFrameView(FrameView& frameView) 218 213 { -
trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.h
r191243 r197825 210 210 explicit ScrollingCoordinator(Page*); 211 211 212 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea&);213 214 212 GraphicsLayer* scrollLayerForFrameView(FrameView&); 215 213 GraphicsLayer* counterScrollingLayerForFrameView(FrameView&); -
trunk/Source/WebCore/platform/ScrollableArea.h
r196688 r197825 179 179 WEBCORE_EXPORT IntSize scrollbarIntrusion() const; 180 180 181 virtual Scrollbar* horizontalScrollbar() const { return 0; }182 virtual Scrollbar* verticalScrollbar() const { return 0; }181 virtual Scrollbar* horizontalScrollbar() const { return nullptr; } 182 virtual Scrollbar* verticalScrollbar() const { return nullptr; } 183 183 184 184 const IntPoint& scrollOrigin() const { return m_scrollOrigin; } … … 292 292 #endif 293 293 294 virtual TiledBacking* tiledBacking() const { return 0; }294 virtual TiledBacking* tiledBacking() const { return nullptr; } 295 295 296 296 // True if scrolling happens by moving compositing layers. … … 299 299 virtual bool usesAsyncScrolling() const { return false; } 300 300 301 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; }302 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; }301 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return nullptr; } 302 virtual GraphicsLayer* layerForVerticalScrollbar() const { return nullptr; } 303 303 304 304 bool hasLayerForHorizontalScrollbar() const; … … 323 323 324 324 friend class ScrollingCoordinator; 325 virtual GraphicsLayer* layerForScrolling() const { return 0; } 326 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } 325 virtual GraphicsLayer* layerForScrollCorner() const { return nullptr; } 327 326 #if ENABLE(RUBBER_BANDING) 328 virtual GraphicsLayer* layerForOverhangAreas() const { return 0; }327 virtual GraphicsLayer* layerForOverhangAreas() const { return nullptr; } 329 328 #endif 330 329 -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r197716 r197825 6052 6052 } 6053 6053 6054 GraphicsLayer* RenderLayer::layerForScrolling() const6055 {6056 return m_backing ? m_backing->scrollingContentsLayer() : nullptr;6057 }6058 6059 6054 GraphicsLayer* RenderLayer::layerForHorizontalScrollbar() const 6060 6055 { -
trunk/Source/WebCore/rendering/RenderLayer.h
r197563 r197825 611 611 RenderLayerBacking* ensureBacking(); 612 612 void clearBacking(bool layerBeingDestroyed = false); 613 GraphicsLayer* layerForScrolling() const override;614 613 GraphicsLayer* layerForHorizontalScrollbar() const override; 615 614 GraphicsLayer* layerForVerticalScrollbar() const override;
Note:
See TracChangeset
for help on using the changeset viewer.