Changeset 51710 in webkit
- Timestamp:
- Dec 4, 2009 1:03:38 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r51708 r51710 1 2009-12-04 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Timothy Hatcher. 4 5 Web Inspector: Remove suppress highlight when restoring selected node. 6 7 https://bugs.webkit.org/show_bug.cgi?id=32152 8 9 * inspector/front-end/ElementsPanel.js: 10 (WebInspector.ElementsPanel.prototype.setDocument.selectNode): 11 (WebInspector.ElementsPanel.prototype.setDocument.selectLastSelectedNode): 12 (WebInspector.ElementsPanel.prototype.setDocument): 13 1 14 2009-12-04 Dirk Schulze <krit@webkit.org> 2 15 -
trunk/WebCore/inspector/front-end/ElementsPanel.js
r51601 r51710 206 206 this.treeOutline.suppressSelectHighlight = false; 207 207 208 function select DefaultNode()208 function selectNode(candidateFocusNode) 209 209 { 210 if (!candidateFocusNode) 211 candidateFocusNode = inspectedRootDocument.body || inspectedRootDocument.documentElement; 212 213 if (!candidateFocusNode) 214 return; 215 210 216 this.treeOutline.suppressSelectHighlight = true; 211 var candidateFocusNode = inspectedRootDocument.body || inspectedRootDocument.documentElement; 212 if (candidateFocusNode) { 213 this.focusedDOMNode = candidateFocusNode; 214 215 if (this.treeOutline.selectedTreeElement) 216 this.treeOutline.selectedTreeElement.expand(); 217 } 217 this.focusedDOMNode = candidateFocusNode; 218 if (this.treeOutline.selectedTreeElement) 219 this.treeOutline.selectedTreeElement.expand(); 220 this.treeOutline.suppressSelectHighlight = false; 218 221 } 219 222 … … 221 224 { 222 225 var node = nodeId ? WebInspector.domAgent.nodeForId(nodeId) : 0; 223 if (!node) { 224 selectDefaultNode.call(this); 225 return; 226 } 227 228 this.treeOutline.suppressSelectHighlight = true; 229 this.focusedDOMNode = node; 230 this.treeOutline.suppressSelectHighlight = false; 226 selectNode.call(this, node); 231 227 } 232 228 … … 234 230 InjectedScriptAccess.nodeByPath(this._selectedPathOnReset, selectLastSelectedNode.bind(this)); 235 231 else 236 select DefaultNode.call(this);232 selectNode.call(this); 237 233 delete this._selectedPathOnReset; 238 234 },
Note: See TracChangeset
for help on using the changeset viewer.