Changeset 107443 in webkit


Ignore:
Timestamp:
Feb 10, 2012 2:25:10 PM (12 years ago)
Author:
andersca@apple.com
Message:

Remove a bunch of unused ScrollableArea member functions
https://bugs.webkit.org/show_bug.cgi?id=78388

Reviewed by Beth Dakin.

  • platform/ScrollableArea.cpp:
  • platform/ScrollableArea.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107442 r107443  
     12012-02-10  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove a bunch of unused ScrollableArea member functions
     4        https://bugs.webkit.org/show_bug.cgi?id=78388
     5
     6        Reviewed by Beth Dakin.
     7
     8        * platform/ScrollableArea.cpp:
     9        * platform/ScrollableArea.h:
     10
    1112012-02-10  Pavel Podivilov  <podivilov@chromium.org>
    212
  • trunk/Source/WebCore/platform/ScrollableArea.cpp

    r107438 r107443  
    283283}
    284284
    285 bool ScrollableArea::isPinnedInBothDirections(const IntSize& scrollDelta) const
    286 {
    287     return isPinnedHorizontallyInDirection(scrollDelta.width()) && isPinnedVerticallyInDirection(scrollDelta.height());
    288 }
    289 
    290 bool ScrollableArea::isPinnedHorizontallyInDirection(int horizontalScrollDelta) const
    291 {
    292     if (horizontalScrollDelta < 0 && isHorizontalScrollerPinnedToMinimumPosition())
    293         return true;
    294     if (horizontalScrollDelta > 0 && isHorizontalScrollerPinnedToMaximumPosition())
    295         return true;
    296     return false;
    297 }
    298 
    299 bool ScrollableArea::isPinnedVerticallyInDirection(int verticalScrollDelta) const
    300 {
    301     if (verticalScrollDelta < 0 && isVerticalScrollerPinnedToMinimumPosition())
    302         return true;
    303     if (verticalScrollDelta > 0 && isVerticalScrollerPinnedToMaximumPosition())
    304         return true;
    305     return false;
    306 }
    307 
    308285void ScrollableArea::invalidateScrollbar(Scrollbar* scrollbar, const IntRect& rect)
    309286{
  • trunk/Source/WebCore/platform/ScrollableArea.h

    r107438 r107443  
    142142    virtual bool isOnActivePage() const { ASSERT_NOT_REACHED(); return true; }
    143143   
    144     bool isHorizontalScrollerPinnedToMinimumPosition() const { return !horizontalScrollbar() || scrollPosition(horizontalScrollbar()) <= minimumScrollPosition().x(); }
    145     bool isHorizontalScrollerPinnedToMaximumPosition() const { return !horizontalScrollbar() || scrollPosition(horizontalScrollbar()) >= maximumScrollPosition().x(); }
    146     bool isVerticalScrollerPinnedToMinimumPosition() const { return !verticalScrollbar() || scrollPosition(verticalScrollbar()) <= minimumScrollPosition().y(); }
    147     bool isVerticalScrollerPinnedToMaximumPosition() const { return !verticalScrollbar() || scrollPosition(verticalScrollbar()) >= maximumScrollPosition().y(); }
    148 
    149144    // Note that this only returns scrollable areas that can actually be scrolled.
    150145    virtual ScrollableArea* enclosingScrollableArea() const = 0;
     
    152147    // Returns the bounding box of this scrollable area, in the coordinate system of the enclosing scroll view.
    153148    virtual IntRect scrollableAreaBoundingBox() const { ASSERT_NOT_REACHED(); return IntRect(); }
    154 
    155     bool isPinnedInBothDirections(const IntSize&) const;
    156     bool isPinnedHorizontallyInDirection(int horizontalScrollDelta) const;
    157     bool isPinnedVerticallyInDirection(int verticalScrollDelta) const;
    158149
    159150    virtual bool shouldRubberBandInDirection(ScrollDirection) const { return true; }
Note: See TracChangeset for help on using the changeset viewer.