Changeset 198269 in webkit


Ignore:
Timestamp:
Mar 16, 2016 2:36:29 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

REGRESSION(r195661): [GTK] very slow scrolling
https://bugs.webkit.org/show_bug.cgi?id=155334

Reviewed by Sergio Villar Senin.

Fix smooth scrolling behaviour change after r195661.

  • platform/ScrollAnimationSmooth.cpp:

(WebCore::getAnimationParametersForGranularity): Fix a typo,
animationTime for pixel granularity should be 11 * tickTime.
(WebCore::ScrollAnimationSmooth::animateScroll): Previous code
reset all the data except the visibleLenght, so keep it in the
PerAxisData after the reset.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r198266 r198269  
     12016-03-16  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(r195661): [GTK] very slow scrolling
     4        https://bugs.webkit.org/show_bug.cgi?id=155334
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        Fix smooth scrolling behaviour change after r195661.
     9
     10        * platform/ScrollAnimationSmooth.cpp:
     11        (WebCore::getAnimationParametersForGranularity): Fix a typo,
     12        animationTime for pixel granularity should be 11 * tickTime.
     13        (WebCore::ScrollAnimationSmooth::animateScroll): Previous code
     14        reset all the data except the visibleLenght, so keep it in the
     15        PerAxisData after the reset.
     16
    1172016-03-16  Commit Queue  <commit-queue@webkit.org>
    218
  • trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp

    r195661 r198269  
    258258        break;
    259259    case ScrollByPixel:
    260         animationTime = 1 * tickTime;
     260        animationTime = 11 * tickTime;
    261261        repeatMinimumSustainTime = 2 * tickTime;
    262262        attackTime = 3 * tickTime;
     
    381381    if (deltaTime > data.animationTime) {
    382382        double desiredPosition = data.desiredPosition;
     383        int visibleLength = data.visibleLength;
    383384        data = PerAxisData();
    384385        data.currentPosition = desiredPosition;
     386        data.visibleLength = visibleLength;
    385387        return false;
    386388    }
Note: See TracChangeset for help on using the changeset viewer.