LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Sep 2006 19:31:56 +0000 (19:31 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Sep 2006 19:31:56 +0000 (19:31 +0000)
commit1c609ac21dcbc6d16435a0e3f1856417d961ec63
tree3970b15fed0895a2c3d723098a93de1d9ac9b9b1
parentfcb65e064ed9a8ade26bee9735bb150e19434cb3
LayoutTests:

        Reviewed by john

        * editing/pasteboard/subframe-dragndrop-1-expected.checksum: Added.
        * editing/pasteboard/subframe-dragndrop-1-expected.png: Added.
        * editing/pasteboard/subframe-dragndrop-1-expected.txt: Added.
        * editing/pasteboard/subframe-dragndrop-1.html: Added.

WebCore:

        Reviewed by john

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7165>
        TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe

        * editing/MoveSelectionCommand.cpp:
        (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
        to the position-to-move-to's document, not the fragment's document.  The
        fragment's document is the document used to create the fragment and is irrelavant.

WebKit:

        Reviewed by john

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7165>
        TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe

        The top level WebHTMLView is responsible for performing dragging operations, but
        the inner view, the view that holds the drag caret, should be consulted to determine
        if the drag is a move drag.

        * WebCoreSupport/WebFrameBridge.m:
        (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
        * WebKit.xcodeproj/project.pbxproj:
        * WebView/WebHTMLView.m:
        (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
        it's only the top level WebHTMLView that performs this operation.
        (-[WebHTMLView _setInitiatedDrag:]): Added.
        (-[WebHTMLView _initiatedDrag]): Ditto.
        (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
        not the top level view.
        (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
        a move drag, so don't ASSERT _isTopHTMLView.
        (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
        (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
        * WebView/WebHTMLViewInternal.h: Added two private SPI so that
        the top level WebHTMLView can set and get the initiatedDrag BOOL.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/subframe-dragndrop-1-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/subframe-dragndrop-1-expected.png [new file with mode: 0644]
LayoutTests/editing/pasteboard/subframe-dragndrop-1-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/subframe-dragndrop-1.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/MoveSelectionCommand.cpp
WebKit/ChangeLog
WebKit/WebCoreSupport/WebFrameBridge.m
WebKit/WebView/WebHTMLView.m
WebKit/WebView/WebHTMLViewInternal.h