Changeset 185800 in webkit


Ignore:
Timestamp:
Jun 20, 2015 3:47:39 PM (9 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Unable to select parent element in the DOM tree path bar
https://bugs.webkit.org/show_bug.cgi?id=145810

Reviewed by Timothy Hatcher.

  • UserInterface/Views/DOMTreeContentView.js:

(WebInspector.DOMTreeContentView.prototype.get selectionPathComponents):

  • UserInterface/Views/HierarchicalPathComponent.js:

(WebInspector.HierarchicalPathComponent.prototype.get selectedPathComponent):
(WebInspector.HierarchicalPathComponent.prototype._selectElementMouseUp):
(WebInspector.HierarchicalPathComponent.prototype._selectElementSelectionChanged):
(WebInspector.HierarchicalPathComponent):
(WebInspector.HierarchicalPathComponent.prototype._selectElementMouseDown): Deleted.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r185789 r185800  
     12015-06-20  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Unable to select parent element in the DOM tree path bar
     4        https://bugs.webkit.org/show_bug.cgi?id=145810
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Views/DOMTreeContentView.js:
     9        (WebInspector.DOMTreeContentView.prototype.get selectionPathComponents):
     10        * UserInterface/Views/HierarchicalPathComponent.js:
     11        (WebInspector.HierarchicalPathComponent.prototype.get selectedPathComponent):
     12        (WebInspector.HierarchicalPathComponent.prototype._selectElementMouseUp):
     13        (WebInspector.HierarchicalPathComponent.prototype._selectElementSelectionChanged):
     14        (WebInspector.HierarchicalPathComponent):
     15        (WebInspector.HierarchicalPathComponent.prototype._selectElementMouseDown): Deleted.
     16
    1172015-06-19  Joseph Pecoraro  <pecoraro@apple.com>
    218
  • trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js

    r184993 r185800  
    124124
    125125            var pathComponent = new WebInspector.DOMTreeElementPathComponent(treeElement, treeElement.representedObject);
    126             pathComponent.addEventListener(WebInspector.HierarchicalPathComponent.Event.SiblingWasSelected, this._pathComponentSelected, this);
     126            pathComponent.addEventListener(WebInspector.HierarchicalPathComponent.Event.Clicked, this._pathComponentSelected, this);
    127127            pathComponents.unshift(pathComponent);
    128128            treeElement = treeElement.parent;
  • trunk/Source/WebInspectorUI/UserInterface/Views/HierarchicalPathComponent.js

    r184819 r185800  
    8585    // Public
    8686
     87    get selectedPathComponent()
     88    {
     89        var selectElement = this._selectElement[this._selectElement.selectedIndex];
     90        return selectElement && selectElement._pathComponent || null;
     91    }
     92
    8793    get element()
    8894    {
     
    306312    _selectElementMouseUp(event)
    307313    {
    308         this.dispatchEventToListeners(WebInspector.HierarchicalPathComponent.Event.Clicked);
     314        this.dispatchEventToListeners(WebInspector.HierarchicalPathComponent.Event.Clicked, {pathComponent: this.selectedPathComponent});
    309315    }
    310316
    311317    _selectElementSelectionChanged(event)
    312318    {
    313         this.dispatchEventToListeners(WebInspector.HierarchicalPathComponent.Event.SiblingWasSelected, {pathComponent: this._selectElement[this._selectElement.selectedIndex]._pathComponent});
     319        this.dispatchEventToListeners(WebInspector.HierarchicalPathComponent.Event.SiblingWasSelected, {pathComponent: this.selectedPathComponent});
    314320    }
    315321};
Note: See TracChangeset for help on using the changeset viewer.