Changeset 109183 in webkit


Ignore:
Timestamp:
Feb 28, 2012 6:36:08 PM (12 years ago)
Author:
andersca@apple.com
Message:

With tiled drawing enabled, pressing Down arrow after scrolling via mouse gesture causes page to jump back up to top
https://bugs.webkit.org/show_bug.cgi?id=79249
<rdar://problem/10866273>

Reviewed by Sam Weinig.

ScrollableArea::notifyScrollPositionChanged must make sure that the scroll animator position is kept up to date.

  • platform/ScrollAnimator.cpp:

(WebCore::ScrollAnimator::setCurrentPosition):
(WebCore):

  • platform/ScrollAnimator.h:

(ScrollAnimator):

  • platform/ScrollableArea.cpp:

(WebCore::ScrollableArea::notifyScrollPositionChanged):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109182 r109183  
     12012-02-28  Anders Carlsson  <andersca@apple.com>
     2
     3        With tiled drawing enabled, pressing Down arrow after scrolling via mouse gesture causes page to jump back up to top
     4        https://bugs.webkit.org/show_bug.cgi?id=79249
     5        <rdar://problem/10866273>
     6
     7        Reviewed by Sam Weinig.
     8
     9        ScrollableArea::notifyScrollPositionChanged must make sure that the scroll animator position is kept up to date.
     10
     11        * platform/ScrollAnimator.cpp:
     12        (WebCore::ScrollAnimator::setCurrentPosition):
     13        (WebCore):
     14        * platform/ScrollAnimator.h:
     15        (ScrollAnimator):
     16        * platform/ScrollableArea.cpp:
     17        (WebCore::ScrollableArea::notifyScrollPositionChanged):
     18
    1192012-02-28  Daniel Cheng  <dcheng@chromium.org>
    220
  • trunk/Source/WebCore/platform/ScrollAnimator.cpp

    r107823 r109183  
    123123}
    124124
     125void ScrollAnimator::setCurrentPosition(const FloatPoint& position)
     126{
     127    m_currentPosX = position.x();
     128    m_currentPosY = position.y();
     129}
     130
    125131FloatPoint ScrollAnimator::currentPosition() const
    126132{
  • trunk/Source/WebCore/platform/ScrollAnimator.h

    r107823 r109183  
    6666    virtual bool handleWheelEvent(const PlatformWheelEvent&);
    6767
     68    void setCurrentPosition(const FloatPoint&);
    6869    FloatPoint currentPosition() const;
    6970
  • trunk/Source/WebCore/platform/ScrollableArea.cpp

    r107823 r109183  
    151151    }
    152152
     153    scrollAnimator()->setCurrentPosition(position);
    153154    scrollAnimator()->notifyContentAreaScrolled();
    154155}
Note: See TracChangeset for help on using the changeset viewer.