Skip to content
  • bweinstein@apple.com's avatar
    Drag and Drop source/destination code needs cleanup. · 057730b0
    bweinstein@apple.com authored
    <https://bugs.webkit.org/show_bug.cgi?id=33691>.
            
    Reviewed by Adam Roben.
    
    WebCore: 
    
    Cleaned up some Drag and Drop code that deals with getting
    source and destination operations, and added some ASSERTS to make
    sure we don't get in bad states.
    
    * dom/Clipboard.cpp:
    (WebCore::Clipboard::sourceOperation): Make this return the operation itself.
    (WebCore::Clipboard::destinationOperation): Ditto.
    (WebCore::Clipboard::setSourceOperation): Add an assert to make sure we're valud.
    (WebCore::Clipboard::setDestinationOperation): Ditto.
    * dom/Clipboard.h:
    * page/DragController.cpp:
    (WebCore::DragController::tryDHTMLDrag):
    * page/EventHandler.cpp:
    (WebCore::EventHandler::handleDrag):
    
    WebKit/chromium: 
    
    Update to new way of calling sourceOperation.
    
    * src/DragClientImpl.cpp:
    (WebKit::DragClientImpl::startDrag):
    
    WebKit/qt: 
    
    Update to new way of calling sourceOperation.
    
    * WebCoreSupport/DragClientQt.cpp:
    (WebCore::DragClientQt::startDrag):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    057730b0