Changeset 109265 in webkit


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

[Chromium] Some Layout Tests in platform/chromium/rubberbanding and platform/chromium/compositing/rubberbanding are failing
https://bugs.webkit.org/show_bug.cgi?id=79878

Reviewed by James Robinson.

Make sure that ScrollableArea::setScrollOffsetFromAnimation doesn't end up
setting the ScrollAnimator's current scroll position by making a new function, scrollPositionChanged,
that both notifyScrollPositionChanged and setScrollOffsetFromAnimation call and move the call to update
the position to notifyScrollPositionChanged.

  • platform/ScrollableArea.cpp:

(WebCore::ScrollableArea::notifyScrollPositionChanged):
(WebCore):
(WebCore::ScrollableArea::scrollPositionChanged):
(WebCore::ScrollableArea::setScrollOffsetFromAnimation):

  • platform/ScrollableArea.h:

(ScrollableArea):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109263 r109265  
     12012-02-29  Anders Carlsson  <andersca@apple.com>
     2
     3        [Chromium] Some Layout Tests in platform/chromium/rubberbanding and platform/chromium/compositing/rubberbanding are failing
     4        https://bugs.webkit.org/show_bug.cgi?id=79878
     5
     6        Reviewed by James Robinson.
     7
     8        Make sure that ScrollableArea::setScrollOffsetFromAnimation doesn't end up
     9        setting the ScrollAnimator's current scroll position by making a new function, scrollPositionChanged,
     10        that both notifyScrollPositionChanged and setScrollOffsetFromAnimation call and move the call to update
     11        the position to notifyScrollPositionChanged.
     12
     13        * platform/ScrollableArea.cpp:
     14        (WebCore::ScrollableArea::notifyScrollPositionChanged):
     15        (WebCore):
     16        (WebCore::ScrollableArea::scrollPositionChanged):
     17        (WebCore::ScrollableArea::setScrollOffsetFromAnimation):
     18        * platform/ScrollableArea.h:
     19        (ScrollableArea):
     20
    1212012-02-29  Dana Jansens  <danakj@chromium.org>
    222
  • trunk/Source/WebCore/platform/ScrollableArea.cpp

    r109183 r109265  
    125125void ScrollableArea::notifyScrollPositionChanged(const IntPoint& position)
    126126{
     127    scrollPositionChanged(position);
     128    scrollAnimator()->setCurrentPosition(position);
     129}
     130
     131void ScrollableArea::scrollPositionChanged(const IntPoint& position)
     132{
    127133    // Tell the derived class to scroll its contents.
    128134    setScrollOffset(position);
     
    151157    }
    152158
    153     scrollAnimator()->setCurrentPosition(position);
    154159    scrollAnimator()->notifyContentAreaScrolled();
    155160}
     
    171176        return;
    172177
    173     notifyScrollPositionChanged(offset);
     178    scrollPositionChanged(offset);
    174179}
    175180
  • trunk/Source/WebCore/platform/ScrollableArea.h

    r107823 r109265  
    180180
    181181private:
     182    void scrollPositionChanged(const IntPoint&);
     183   
    182184    // NOTE: Only called from the ScrollAnimator.
    183185    friend class ScrollAnimator;
Note: See TracChangeset for help on using the changeset viewer.