Skip to content
  • hyatt@apple.com's avatar
    2009-01-25 David Hyatt <hyatt@apple.com> · e007fb25
    hyatt@apple.com authored
            Fix for <rdar://problem/6525392> REGRESSION (r40180): Scroll wheel events over text scroll the page
            instead of the ancestor overflow (23525)
            
            Make sure that we always call scroll() on the nearest enclosing RenderBox.  No test case is possible
            here, since wheel scrolling is currently untestable (the offset varies from machine to machine).
    
            Reviewed by Dan Bernstein
    
            * page/EventHandler.cpp:
            (WebCore::scrollAndAcceptEvent):
            (WebCore::EventHandler::scrollOverflow):
            * rendering/RenderObject.cpp:
            (WebCore::RenderObject::enclosingBox):
            * rendering/RenderObject.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e007fb25