Skip to content
  • oliver's avatar
    WebCore: · 55cc92b5
    oliver authored
            Reviewed by Adam and Justin.
    
            <rdar://problem/5141779> WebView editableDOMRangeForPoint: & moveDragCaretToPoint: returns last position in DOMText range
    
            Remove bridge implementation for editableDOMRangeForPoint: and moveDragCaretToPoint:. 
            Now use cross-platform code Editor::rangeForPoint and DragController::placeDragCaret instead.
            This required lifting local code from DragController.cpp into the shared methods
            Frame::visiblePositionForPoint and Frame::documentAtPoint.
    
            * WebCore.exp:
            * editing/Editor.cpp:
            (WebCore::Editor::rangeForPoint):
            * editing/Editor.h:
            * page/DragController.cpp:
            (WebCore::DragController::dragEnded):
            (WebCore::DragController::performDrag):
            (WebCore::DragController::dragEnteredOrUpdated):
            (WebCore::DragController::tryDocumentDrag):
            (WebCore::DragController::operationForLoad):
            (WebCore::setSelectionToDragCaret):
            (WebCore::DragController::concludeDrag):
            (WebCore::DragController::placeDragCaret):
            * page/DragController.h:
            * page/Frame.cpp:
            (WebCore::Frame::visiblePositionForPoint):
            (WebCore::Frame::documentAtPoint):
            * page/Frame.h:
            * page/mac/WebCoreFrameBridge.h:
            * page/mac/WebCoreFrameBridge.mm:
    
    WebKit:
    
            Reviewed by Adam and Justin.
    
            <rdar://problem/5141779> WebView editableDOMRangeForPoint: & moveDragCaretToPoint: returns last position in DOMText range
    
            editableDOMRangeForPoint:, moveDragCaretToPoint:, and removeDragCaret now call directly into
            WebCore without relying on bridge look up through the now removed _bridgeAtPoint:.
    
            * WebKit.xcodeproj/project.pbxproj:
            * WebView/WebView.mm:
            (-[WebView moveDragCaretToPoint:]):
            (-[WebView removeDragCaret]):
            (-[WebView editableDOMRangeForPoint:]):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    55cc92b5