Changeset 67369 in webkit
- Timestamp:
- Sep 13, 2010 1:20:59 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r67367 r67369 1 2010-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 1 14 2010-09-13 Adam Barth <abarth@webkit.org> 2 15 -
trunk/WebCore/platform/ScrollAnimatorWin.cpp
r67009 r67369 129 129 // events that come slower, we'll scroll one increment and then pause until 130 130 // the next event fires. 131 float animationStep = abs(newPos - *data->m_currentPos);131 float animationStep = fabs(newPos - *data->m_currentPos); 132 132 // If a key is held down (or the wheel continually spun), then once we have 133 133 // reached a velocity close to the steady-state velocity, we're likely to … … 276 276 277 277 // 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)) { 279 279 // We've traveled far enough to reach the desired position. Stop smooth 280 280 // scrolling.
Note: See TracChangeset
for help on using the changeset viewer.