Skip to content
  • andersca@apple.com's avatar
    Add a ScrollElasticityController class and move some members over from ScrollAnimatorMac · 90f99c25
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=69373
    
    Reviewed by David Hyatt.
    
    ScrollElasticityController is a new class that will handle the rubber-banding when handling scroll events.
    
    * WebCore.xcodeproj/project.pbxproj:
    * platform/mac/ScrollAnimatorMac.h:
    * platform/mac/ScrollAnimatorMac.mm:
    (WebCore::ScrollAnimatorMac::ScrollAnimatorMac):
    (WebCore::ScrollAnimatorMac::handleWheelEvent):
    (WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
    (WebCore::ScrollAnimatorMac::beginScrollGesture):
    (WebCore::ScrollAnimatorMac::snapRubberBand):
    (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
    * platform/mac/ScrollElasticityController.h: Added.
    (WebCore::ScrollElasticityControllerClient::~ScrollElasticityControllerClient):
    * platform/mac/ScrollElasticityController.mm: Added.
    (WebCore::ScrollElasticityController::ScrollElasticityController):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    90f99c25