Skip to content
  • timothy@apple.com's avatar
    Make momentum scroll event latching work in WebKit2 on Mac. · 169c77d4
    timothy@apple.com authored
    <rdar://problem/8751861>
    
    Reviewed by Darin Adler.
    
    Source/WebCore:
    
    * WebCore.exp.in: Remove _wkIsLatchingWheelEvent, add _wkGetNSEventMomentumPhase.
    * page/EventHandler.cpp:
    (WebCore::EventHandler::handleWheelEvent): Set m_useLatchedWheelEventNode based on the
    event's momentumPhase.
    * page/mac/EventHandlerMac.mm:
    (WebCore::EventHandler::wheelEvent): Remove the setting of m_useLatchedWheelEventNode.
    It is now done in EventHandler::handleWheelEvent.
    * platform/mac/WebCoreSystemInterface.h: Remove wkIsLatchingWheelEvent, add wkGetNSEventMomentumPhase.
    * platform/mac/WebCoreSystemInterface.mm: Ditto.
    * platform/mac/WheelEventMac.mm:
    (WebCore::momentumPhaseForEvent): Return a phase on older Mac system by using wkGetNSEventMomentumPhase.
    
    Source/WebKit/mac:
    
    * WebCoreSupport/WebSystemInterface.mm:
    (InitWebCoreSystemInterface): Remove IsLatchingWheelEvent, add GetNSEventMomentumPhase.
    * WebView/WebDynamicScrollBarsView.mm:
    (-[WebDynamicScrollBarsView scrollWheel:]): Use WKGetNSEventMomentumPhase to set isLatchingEvent.
    
    Source/WebKit2:
    
    * Shared/mac/WebEventFactory.mm:
    (WebKit::momentumPhaseForEvent): Return a phase on older Mac system by using WKGetNSEventMomentumPhase.
    * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
    (InitWebCoreSystemInterface): Remove IsLatchingWheelEvent, add GetNSEventMomentumPhase.
    
    WebKitLibraries:
    
    * WebKitSystemInterface.h:
    * libWebKitSystemInterfaceLeopard.a: Updated to remove WKIsLatchingWheelEvent and add WKGetNSEventMomentumPhase.
    * libWebKitSystemInterfaceSnowLeopard.a: Ditto.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    169c77d4