Changeset 280037 in webkit
- Timestamp:
- Jul 19, 2021 11:06:51 AM (12 months ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/DOMTreeContentView.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r280035 r280037 1 2021-07-19 Patrick Angle <pangle@apple.com> 2 3 Web Inspector: Elements: selecting a sibling node in the breadcrumb navigation doesn't do anything 4 https://bugs.webkit.org/show_bug.cgi?id=227893 5 6 Reviewed by Devin Rousso. 7 8 The `WI.HierarchicalPathComponent.Event.Clicked` event is only fired when there are no sibling path components 9 to select, therefor we must also listen for the `WI.HierarchicalPathComponent.Event.SiblingWasSelected` event to 10 be able to then reveal and highlight the correct DOM node in the tree. 11 12 * UserInterface/Views/DOMTreeContentView.js: 13 (WI.DOMTreeContentView.prototype.get selectionPathComponents): 14 (WI.DOMTreeContentView.prototype._handlePathComponentSelected): 15 Drive-by to match our style of `_handle*` event handler naming. 16 1 17 2021-07-19 Patrick Angle <pangle@apple.com> 2 18 -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js
r270134 r280037 182 182 183 183 var pathComponent = new WI.DOMTreeElementPathComponent(treeElement, treeElement.representedObject); 184 pathComponent.addEventListener(WI.HierarchicalPathComponent.Event.Clicked, this._pathComponentSelected, this); 184 pathComponent.addEventListener(WI.HierarchicalPathComponent.Event.Clicked, this._handlePathComponentSelected, this); 185 pathComponent.addEventListener(WI.HierarchicalPathComponent.Event.SiblingWasSelected, this._handlePathComponentSelected, this); 185 186 pathComponents.unshift(pathComponent); 186 187 treeElement = treeElement.parent; … … 532 533 } 533 534 534 _ pathComponentSelected(event)535 _handlePathComponentSelected(event) 535 536 { 536 537 if (!event.data.pathComponent)
Note: See TracChangeset
for help on using the changeset viewer.