• graouts@apple.com's avatar
    Web Inspector: nodes can be dragged from the console log · 9b15e9df
    graouts@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=122105
    
    Reviewed by Darin Adler.
    
    Catch "dragstart" events targeting nodes hosted in a DOMTreeOutline within the console
    log view and prevent the default logic to trigger so that these nodes can't be dragged
    off the console as it wouldn't make sense to.
    
    * UserInterface/DOMTreeOutline.js:
    (WebInspector.DOMTreeOutline):
    Create a class property to allow the CSS class name to be used in WebInspector.LogContentView.
    
    * UserInterface/LogContentView.js:
    (WebInspector.LogContentView):
    (WebInspector.LogContentView.prototype._ondragstart):
    Track the "dragstart" events in their capture phase such that, if the event target is
    a DOM node hosted in a DOMTreeOutline, we can prevent the event from propagating and
    cancel its default behavior such that no dragging at all is performed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9b15e9df
ChangeLog 95.7 KB