Skip to content
  • tomernic's avatar
    WebCore: · f917f147
    tomernic authored
            Reviewed by Maciej.
    
            <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
            by script
    
            * bridge/mac/WebCoreFrameBridge.h:
            * bridge/mac/WebCoreFrameBridge.mm:
            (-[WebCoreFrameBridge setProhibitsScrolling:]):
            * page/Frame.cpp:
            (WebCore::Frame::prohibitsScrolling):
            (WebCore::Frame::setProhibitsScrolling):
            * page/Frame.h:
            * page/FramePrivate.h:
            (WebCore::FramePrivate::FramePrivate):
            * page/FrameView.cpp:
            (WebCore::FrameView::scrollPointRecursively):
            (WebCore::FrameView::setContentsPos):
            * page/FrameView.h:
            * platform/ScrollView.h:
    
    WebKit:
    
            Reviewed by Maciej.
    
            <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
            by script
    
            * WebView/WebViewPrivate.h:
            * WebView/WebView.m:
            (-[WebView setProhibitsMainFrameScrolling:]):
            New method.  Prohibits scrolling in the WebView's main frame.  Used to "lock" a WebView to a specific
            scroll position.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f917f147