Skip to content
  • commit-queue@webkit.org's avatar
    Chromium Mac: PDF: Scrollsbars should be visible when scrolling using the two... · d3561e97
    commit-queue@webkit.org authored
    Chromium Mac: PDF: Scrollsbars should be visible when scrolling using the two finger gesture on Lion
    https://bugs.webkit.org/show_bug.cgi?id=66599
    
    Patch by Sailesh Agrawal <sail@chromium.org> on 2011-08-31
    Reviewed by Darin Fisher.
    
    Overlay scrollbars over a pdf wouldn't stay visible if a gesture was in progress. Normally we use a beginScrollGesture and endScrollGesture to keep the scrollbars visible. Unfortunately PDFs didn't handle gesture events so we didn't get the begin/end gesture events.
    
    This change pipes gesture events to WebPluginContainerImpl if possible. This fixes this bug.
    
    * src/WebPluginContainerImpl.cpp:
    (WebKit::WebPluginContainerImpl::handleGestureEvent):
    * src/WebPluginContainerImpl.h:
    * src/WebViewImpl.cpp:
    (WebKit::WebViewImpl::gestureEvent):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d3561e97