Changeset 67369 in webkit


Ignore:
Timestamp:
Sep 13, 2010 1:20:59 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-09-13 Patrick Gansterer <paroga@paroga.com>

Reviewed by Kenneth Rohde Christiansen.

[WINCE] Buildfix for ScrollAnimatorWin
https://bugs.webkit.org/show_bug.cgi?id=45595

Use fabs() instead of abs().

  • platform/ScrollAnimatorWin.cpp: (WebCore::ScrollAnimatorWin::scroll): (WebCore::ScrollAnimatorWin::animateScroll):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r67367 r67369  
     12010-09-13  Patrick Gansterer  <paroga@paroga.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [WINCE] Buildfix for ScrollAnimatorWin
     6        https://bugs.webkit.org/show_bug.cgi?id=45595
     7
     8        Use fabs() instead of abs().
     9
     10        * platform/ScrollAnimatorWin.cpp:
     11        (WebCore::ScrollAnimatorWin::scroll):
     12        (WebCore::ScrollAnimatorWin::animateScroll):
     13
    1142010-09-13  Adam Barth  <abarth@webkit.org>
    215
  • trunk/WebCore/platform/ScrollAnimatorWin.cpp

    r67009 r67369  
    129129    // events that come slower, we'll scroll one increment and then pause until
    130130    // the next event fires.
    131     float animationStep = abs(newPos - *data->m_currentPos);
     131    float animationStep = fabs(newPos - *data->m_currentPos);
    132132    // If a key is held down (or the wheel continually spun), then once we have
    133133    // reached a velocity close to the steady-state velocity, we're likely to
     
    276276
    277277    // Now update the scroll position based on the distance traveled.
    278     if (distanceTraveled >= abs(data->m_desiredPos - *data->m_currentPos)) {
     278    if (distanceTraveled >= fabs(data->m_desiredPos - *data->m_currentPos)) {
    279279        // We've traveled far enough to reach the desired position.  Stop smooth
    280280        // scrolling.
Note: See TracChangeset for help on using the changeset viewer.