Changeset 197825 in webkit


Ignore:
Timestamp:
Mar 8, 2016, 6:05:13 PM (9 years ago)
Author:
mmaxfield@apple.com
Message:

Delete dead scrolling code
https://bugs.webkit.org/show_bug.cgi?id=155210

Reviewed by Simon Fraser.

No new tests because there is no behavior change.

  • page/FrameView.cpp:

(WebCore::FrameView::layerForScrolling): Deleted.

  • page/FrameView.h:
  • page/scrolling/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::scrollLayerForScrollableArea): Deleted.

  • page/scrolling/ScrollingCoordinator.h:
  • platform/ScrollableArea.h:

(WebCore::ScrollableArea::horizontalScrollbar):
(WebCore::ScrollableArea::verticalScrollbar):
(WebCore::ScrollableArea::tiledBacking):
(WebCore::ScrollableArea::layerForHorizontalScrollbar):
(WebCore::ScrollableArea::layerForVerticalScrollbar):
(WebCore::ScrollableArea::layerForScrollCorner):
(WebCore::ScrollableArea::layerForOverhangAreas):
(WebCore::ScrollableArea::layerForScrolling): Deleted.

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::calculateClipRects): Deleted.

  • rendering/RenderLayer.h:
Location:
trunk/Source/WebCore
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r197816 r197825  
     12016-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
    1292016-03-08  Oliver Hunt  <oliver@apple.com>
    230
  • trunk/Source/WebCore/page/FrameView.cpp

    r197594 r197825  
    853853}
    854854
    855 GraphicsLayer* FrameView::layerForScrolling() const
    856 {
    857     RenderView* renderView = this->renderView();
    858     if (!renderView)
    859         return nullptr;
    860     return renderView->compositor().scrollLayer();
    861 }
    862 
    863855GraphicsLayer* FrameView::layerForHorizontalScrollbar() const
    864856{
  • trunk/Source/WebCore/page/FrameView.h

    r197563 r197825  
    627627    IntRect scrollableAreaBoundingBox(bool* = nullptr) const override;
    628628    bool scrollAnimatorEnabled() const override;
    629     GraphicsLayer* layerForScrolling() const override;
    630629    GraphicsLayer* layerForHorizontalScrollbar() const override;
    631630    GraphicsLayer* layerForVerticalScrollbar() const override;
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp

    r194405 r197825  
    210210}
    211211
    212 GraphicsLayer* ScrollingCoordinator::scrollLayerForScrollableArea(ScrollableArea& scrollableArea)
    213 {
    214     return scrollableArea.layerForScrolling();
    215 }
    216 
    217212GraphicsLayer* ScrollingCoordinator::scrollLayerForFrameView(FrameView& frameView)
    218213{
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.h

    r191243 r197825  
    210210    explicit ScrollingCoordinator(Page*);
    211211
    212     static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea&);
    213 
    214212    GraphicsLayer* scrollLayerForFrameView(FrameView&);
    215213    GraphicsLayer* counterScrollingLayerForFrameView(FrameView&);
  • trunk/Source/WebCore/platform/ScrollableArea.h

    r196688 r197825  
    179179    WEBCORE_EXPORT IntSize scrollbarIntrusion() const;
    180180
    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; }
    183183
    184184    const IntPoint& scrollOrigin() const { return m_scrollOrigin; }
     
    292292#endif
    293293
    294     virtual TiledBacking* tiledBacking() const { return 0; }
     294    virtual TiledBacking* tiledBacking() const { return nullptr; }
    295295
    296296    // True if scrolling happens by moving compositing layers.
     
    299299    virtual bool usesAsyncScrolling() const { return false; }
    300300
    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; }
    303303
    304304    bool hasLayerForHorizontalScrollbar() const;
     
    323323
    324324    friend class ScrollingCoordinator;
    325     virtual GraphicsLayer* layerForScrolling() const { return 0; }
    326     virtual GraphicsLayer* layerForScrollCorner() const { return 0; }
     325    virtual GraphicsLayer* layerForScrollCorner() const { return nullptr; }
    327326#if ENABLE(RUBBER_BANDING)
    328     virtual GraphicsLayer* layerForOverhangAreas() const { return 0; }
     327    virtual GraphicsLayer* layerForOverhangAreas() const { return nullptr; }
    329328#endif
    330329
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r197716 r197825  
    60526052}
    60536053
    6054 GraphicsLayer* RenderLayer::layerForScrolling() const
    6055 {
    6056     return m_backing ? m_backing->scrollingContentsLayer() : nullptr;
    6057 }
    6058 
    60596054GraphicsLayer* RenderLayer::layerForHorizontalScrollbar() const
    60606055{
  • trunk/Source/WebCore/rendering/RenderLayer.h

    r197563 r197825  
    611611    RenderLayerBacking* ensureBacking();
    612612    void clearBacking(bool layerBeingDestroyed = false);
    613     GraphicsLayer* layerForScrolling() const override;
    614613    GraphicsLayer* layerForHorizontalScrollbar() const override;
    615614    GraphicsLayer* layerForVerticalScrollbar() const override;
Note: See TracChangeset for help on using the changeset viewer.