Changeset 219214 in webkit
- Timestamp:
- Jul 6, 2017 1:51:20 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r219198 r219214 1 2017-07-06 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Highlight matching canvas element when hovering contexts in the Resources tab 4 https://bugs.webkit.org/show_bug.cgi?id=174209 5 6 Reviewed by Joseph Pecoraro. 7 8 * UserInterface/Views/CanvasTreeElement.js: 9 (WebInspector.CanvasTreeElement.prototype.onattach): 10 (WebInspector.CanvasTreeElement.prototype._handleMouseOver): 11 (WebInspector.CanvasTreeElement.prototype._handleMouseOut): 12 1 13 2017-07-06 Joseph Pecoraro <pecoraro@apple.com> 2 14 -
trunk/Source/WebInspectorUI/UserInterface/Views/CanvasTreeElement.js
r219150 r219214 36 36 // Protected 37 37 38 onattach() 39 { 40 super.onattach(); 41 42 this.element.addEventListener("mouseover", this._handleMouseOver.bind(this)); 43 this.element.addEventListener("mouseout", this._handleMouseOut.bind(this)); 44 } 45 38 46 populateContextMenu(contextMenu, event) 39 47 { … … 53 61 contextMenu.appendSeparator(); 54 62 } 63 64 // Private 65 66 _handleMouseOver(event) 67 { 68 this.representedObject.requestNode((node) => { 69 if (!node || !node.ownerDocument) 70 return; 71 72 WebInspector.domTreeManager.highlightDOMNode(node.id, "all"); 73 }); 74 } 75 76 _handleMouseOut(event) 77 { 78 WebInspector.domTreeManager.hideDOMNodeHighlight(); 79 } 55 80 };
Note: See TracChangeset
for help on using the changeset viewer.