Changeset 96805 in webkit
- Timestamp:
- Oct 6, 2011, 6:14:22 AM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r96804 r96805 1 2011-10-05 Pavel Feldman <pfeldman@google.com> 2 3 Web Inspector: make ElementsTreeOutline compile 4 https://bugs.webkit.org/show_bug.cgi?id=69439 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/compile-front-end.sh: 9 * inspector/front-end/DOMAgent.js: 10 * inspector/front-end/DOMSyntaxHighlighter.js: 11 * inspector/front-end/ElementsPanel.js: 12 (WebInspector.ElementsPanel.get this): 13 (WebInspector.ElementsPanel): 14 (WebInspector.ElementsPanel.prototype._populateContextMenu): 15 (WebInspector.ElementsPanel.prototype._inspectElementRequested): 16 * inspector/front-end/ElementsTreeOutline.js: 17 (WebInspector.ElementsTreeOutline): 18 (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired.focusElement): 19 (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired): 20 (WebInspector.ElementsTreeOutline.prototype._updateModifiedNodes): 21 (WebInspector.ElementsTreeOutline.prototype._populateContextMenu): 22 (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu): 23 (WebInspector.ElementsTreeElement.prototype._startEditingAttribute): 24 (WebInspector.ElementsTreeElement.prototype._startEditingTextNode): 25 (WebInspector.ElementsTreeElement.prototype._startEditingTagName): 26 (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML): 27 (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.changeTagNameCallback): 28 (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted): 29 (): 30 * inspector/front-end/externs.js: 31 (WebInspector.highlightDOMNode): 32 (WebInspector.resourceURLForRelatedNode): 33 1 34 2011-10-06 Pavel Feldman <pfeldman@google.com> 2 35 -
trunk/Source/WebCore/inspector/compile-front-end.sh
r96695 r96805 69 69 --js Source/WebCore/inspector/front-end/NetworkManager.js \ 70 70 --js Source/WebCore/inspector/front-end/UISourceCode.js \ 71 --module jsmodule_ui:2 8:jsmodule_common \71 --module jsmodule_ui:29:jsmodule_common \ 72 72 --js Source/WebCore/inspector/front-end/Checkbox.js \ 73 73 --js Source/WebCore/inspector/front-end/Color.js \ 74 74 --js Source/WebCore/inspector/front-end/ContextMenu.js \ 75 75 --js Source/WebCore/inspector/front-end/CookiesTable.js \ 76 --js Source/WebCore/inspector/front-end/DOMSyntaxHighlighter.js \ 76 77 --js Source/WebCore/inspector/front-end/DataGrid.js \ 77 78 --js Source/WebCore/inspector/front-end/Drawer.js \ … … 98 99 --js Source/WebCore/inspector/front-end/UIUtils.js \ 99 100 --js Source/WebCore/inspector/front-end/View.js \ 100 --module jsmodule_inspector:1 8:jsmodule_sdk,jsmodule_ui \101 --module jsmodule_inspector:19:jsmodule_sdk,jsmodule_ui \ 101 102 --js Source/WebCore/inspector/front-end/ConsoleMessage.js \ 102 103 --js Source/WebCore/inspector/front-end/ConsoleView.js \ 104 --js Source/WebCore/inspector/front-end/ElementsTreeOutline.js \ 103 105 --js Source/WebCore/inspector/front-end/FontView.js \ 104 106 --js Source/WebCore/inspector/front-end/ImageView.js \ -
trunk/Source/WebCore/inspector/front-end/DOMAgent.js
r96604 r96805 618 618 }, 619 619 620 /** 621 * @param {number} nodeId 622 */ 620 623 inspectElement: function(nodeId) 621 624 { … … 645 648 { 646 649 DOMAgent.querySelectorAll(nodeId, selectors, this._wrapClientCallback(callback)); 650 }, 651 652 /** 653 * @param {?number} nodeId 654 * @param {string=} mode 655 */ 656 highlightDOMNode: function(nodeId, mode) 657 { 658 if (this._hideDOMNodeHighlightTimeout) { 659 clearTimeout(this._hideDOMNodeHighlightTimeout); 660 delete this._hideDOMNodeHighlightTimeout; 661 } 662 663 this._highlightedDOMNodeId = nodeId; 664 if (nodeId) 665 DOMAgent.highlightNode(nodeId, this._buildHighlightConfig(mode)); 666 else 667 DOMAgent.hideHighlight(); 668 }, 669 670 hideDOMNodeHighlight: function() 671 { 672 this.highlightDOMNode(0); 673 }, 674 675 highlightDOMNodeForTwoSeconds: function(nodeId) 676 { 677 this.highlightDOMNode(nodeId); 678 this._hideDOMNodeHighlightTimeout = setTimeout(this.hideDOMNodeHighlight.bind(this), 2000); 679 }, 680 681 setInspectModeEnabled: function(enabled, callback) 682 { 683 DOMAgent.setInspectModeEnabled(enabled, this._buildHighlightConfig(), callback); 684 }, 685 686 /** 687 * @param {string=} mode 688 */ 689 _buildHighlightConfig: function(mode) 690 { 691 mode = mode || "all"; 692 var highlightConfig = { showInfo: mode === "all" }; 693 if (mode === "all" || mode === "content") 694 highlightConfig.contentColor = WebInspector.Color.PageHighlight.Content.toProtocolRGBA(); 695 696 if (mode === "all" || mode === "padding") 697 highlightConfig.paddingColor = WebInspector.Color.PageHighlight.Padding.toProtocolRGBA(); 698 699 if (mode === "all" || mode === "border") 700 highlightConfig.borderColor = WebInspector.Color.PageHighlight.Border.toProtocolRGBA(); 701 702 if (mode === "all" || mode === "margin") 703 highlightConfig.marginColor = WebInspector.Color.PageHighlight.Margin.toProtocolRGBA(); 704 705 return highlightConfig; 647 706 } 648 707 } -
trunk/Source/WebCore/inspector/front-end/DOMSyntaxHighlighter.js
r87294 r96805 29 29 */ 30 30 31 /** 32 * @constructor 33 */ 31 34 WebInspector.DOMSyntaxHighlighter = function(mimeType, stripExtraWhitespace) 32 35 { -
trunk/Source/WebCore/inspector/front-end/ElementsPanel.js
r96711 r96805 42 42 this.contentElement.addEventListener("contextmenu", this._contextMenuEventFired.bind(this), true); 43 43 44 this.treeOutline = new WebInspector.ElementsTreeOutline(true, true );44 this.treeOutline = new WebInspector.ElementsTreeOutline(true, true, false, this._populateContextMenu.bind(this)); 45 45 this.treeOutline.wireToDomAgent(); 46 46 … … 98 98 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.NodeRemoved, this._nodeRemoved, this); 99 99 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.DocumentUpdated, this._documentUpdated, this); 100 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.InspectElementRequested, this._inspectElementRequested, this); 100 101 } 101 102 … … 137 138 WebInspector.Panel.prototype.hide.call(this); 138 139 139 WebInspector. highlightDOMNode(0);140 WebInspector.domAgent.hideDOMNodeHighlight(); 140 141 this.setSearchingForNode(false); 141 142 this.treeOutline.setVisible(false); … … 285 286 WebInspector.setCurrentPanel(this); 286 287 this.selectDOMNode(node, true); 288 }, 289 290 _populateContextMenu: function(contextMenu, node) 291 { 292 if (Preferences.nativeInstrumentationEnabled) { 293 // Add debbuging-related actions 294 contextMenu.appendSeparator(); 295 var pane = this.sidebarPanes.domBreakpoints; 296 pane.populateNodeContextMenu(node, contextMenu); 297 } 287 298 }, 288 299 … … 415 426 var crumbElement = nodeUnderMouse.enclosingNodeOrSelfWithClass("crumb"); 416 427 417 WebInspector. highlightDOMNode(crumbElement ? crumbElement.representedObject.id : 0);428 WebInspector.domAgent.highlightDOMNode(crumbElement ? crumbElement.representedObject.id : 0); 418 429 419 430 if ("_mouseOutOfCrumbsTimeout" in this) { … … 429 440 return; 430 441 431 WebInspector. highlightDOMNode(0);442 WebInspector.domAgent.hideDOMNodeHighlight(); 432 443 433 444 this._mouseOutOfCrumbsTimeout = setTimeout(this.updateBreadcrumbSizes.bind(this), 1000); … … 608 619 link.className = "node-link"; 609 620 this.decorateNodeLabel(node, link); 610 WebInspector.wireElementWithDOMNode(link, node.id); 621 622 link.addEventListener("click", this.revealAndSelectNode.bind(this, node.id), false); 623 link.addEventListener("mouseover", WebInspector.domAgent.highlightDOMNode.bind(WebInspector.domAgent, node.id, ""), false); 624 link.addEventListener("mouseout", WebInspector.domAgent.hideDOMNodeHighlight.bind(WebInspector.domAgent), false); 625 611 626 return link; 612 627 }, … … 985 1000 }, 986 1001 987 updateFocusedNode: function(nodeId) 988 { 1002 _inspectElementRequested: function(event) 1003 { 1004 var node = event.data; 1005 this.revealAndSelectNode(node.id); 1006 }, 1007 1008 revealAndSelectNode: function(nodeId) 1009 { 1010 WebInspector.setCurrentPanel(this); 1011 989 1012 var node = WebInspector.domAgent.nodeForId(nodeId); 990 1013 if (!node) 991 1014 return; 992 1015 1016 WebInspector.domAgent.highlightDOMNodeForTwoSeconds(nodeId); 993 1017 this.selectDOMNode(node, true); 994 1018 if (this.nodeSearchButton.toggled) { … … 998 1022 }, 999 1023 1000 _setSearchingForNode: function(enabled)1001 {1002 this.nodeSearchButton.toggled = enabled;1003 },1004 1005 1024 setSearchingForNode: function(enabled) 1006 1025 { 1007 DOMAgent.setInspectModeEnabled(enabled, WebInspector.buildHighlightConfig(), this._setSearchingForNode.bind(this, enabled)); 1026 function callback(error) 1027 { 1028 if (!error) 1029 this.nodeSearchButton.toggled = enabled; 1030 } 1031 WebInspector.domAgent.setInspectModeEnabled(enabled, callback.bind(this)); 1008 1032 }, 1009 1033 -
trunk/Source/WebCore/inspector/front-end/ElementsTreeOutline.js
r96711 r96805 35 35 * @param {boolean=} selectEnabled 36 36 * @param {boolean=} showInElementsPanelEnabled 37 * @param {function(WebInspector.ContextMenu, WebInspector.DOMNode)=} contextMenuCallback 37 38 */ 38 WebInspector.ElementsTreeOutline = function(omitRootDOMNode, selectEnabled, showInElementsPanelEnabled )39 WebInspector.ElementsTreeOutline = function(omitRootDOMNode, selectEnabled, showInElementsPanelEnabled, contextMenuCallback) 39 40 { 40 41 this.element = document.createElement("ol"); … … 61 62 62 63 this.element.addEventListener("contextmenu", this._contextMenuEventFired.bind(this), true); 64 this._contextMenuCallback = contextMenuCallback; 63 65 } 64 66 … … 305 307 } 306 308 307 WebInspector. highlightDOMNode(element ? element.representedObject.id : 0);309 WebInspector.domAgent.highlightDOMNode(element ? element.representedObject.id : 0); 308 310 }, 309 311 … … 319 321 } 320 322 321 WebInspector. highlightDOMNode(0);323 WebInspector.domAgent.hideDOMNodeHighlight(); 322 324 }, 323 325 … … 338 340 this._nodeBeingDragged = treeElement.representedObject; 339 341 340 WebInspector. highlightDOMNode(0);342 WebInspector.domAgent.hideDOMNodeHighlight(); 341 343 342 344 return true; … … 449 451 function focusElement() 450 452 { 451 WebInspector. panels.elements.switchToAndFocus(treeElement.representedObject);453 WebInspector.domAgent.inspectElement(treeElement.representedObject.id); 452 454 } 453 455 var contextMenu = new WebInspector.ContextMenu(); … … 488 490 if (this._elementsTreeUpdater) 489 491 this._elementsTreeUpdater._updateModifiedNodes(); 492 }, 493 494 _populateContextMenu: function(contextMenu, node) 495 { 496 if (this._contextMenuCallback) 497 this._contextMenuCallback(contextMenu, node); 490 498 } 491 499 } … … 736 744 }, 737 745 746 /** 747 * @param {boolean=} fullRefresh 748 */ 738 749 updateChildren: function(fullRefresh) 739 750 { … … 743 754 }, 744 755 756 /** 757 * @param {boolean=} closingTag 758 */ 745 759 insertChildElement: function(child, index, closingTag) 746 760 { … … 760 774 }, 761 775 776 /** 777 * @param {boolean=} fullRefresh 778 */ 762 779 _updateChildren: function(fullRefresh) 763 780 { … … 767 784 this._updateChildrenInProgress = true; 768 785 var selectedNode = this.treeOutline.selectedDOMNode(); 769 var originalScrollTop ;786 var originalScrollTop = 0; 770 787 if (fullRefresh) { 771 788 var treeOutlineContainerElement = this.treeOutline.element.parentNode; … … 924 941 this.treeOutline.selectDOMNode(this.representedObject, selectedByUser); 925 942 if (selectedByUser) 926 WebInspector. highlightDOMNode(this.representedObject.id);943 WebInspector.domAgent.highlightDOMNode(this.representedObject.id); 927 944 this.updateSelection(); 928 945 this.treeOutline.suppressRevealAndSelect = false; … … 1036 1053 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Delete node" : "Delete Node"), this.remove.bind(this)); 1037 1054 1038 if (Preferences.nativeInstrumentationEnabled) { 1039 // Add debbuging-related actions 1040 contextMenu.appendSeparator(); 1041 var pane = WebInspector.panels.elements.sidebarPanes.domBreakpoints; 1042 pane.populateNodeContextMenu(this.representedObject, contextMenu); 1043 } 1055 this.treeOutline._populateContextMenu(contextMenu, this.representedObject); 1044 1056 }, 1045 1057 … … 1131 1143 removeZeroWidthSpaceRecursive(attribute); 1132 1144 1133 this._editing = WebInspector.startEditing(attribute, { 1134 context: attributeName, 1135 commitHandler: this._attributeEditingCommitted.bind(this), 1136 cancelHandler: this._editingCancelled.bind(this) 1137 }); 1145 var config = new WebInspector.EditingConfig(); 1146 config.setContext(attributeName); 1147 config.setCommitHandler(this._attributeEditingCommitted.bind(this)); 1148 config.setCancelHandler(this._editingCancelled.bind(this)); 1149 this._editing = WebInspector.startEditing(attribute, config); 1150 1138 1151 window.getSelection().setBaseAndExtent(elementForSelection, 0, elementForSelection, 1); 1139 1152 … … 1146 1159 return true; 1147 1160 1148 this._editing = WebInspector.startEditing(textNode, {1149 context: null,1150 commitHandler: this._textNodeEditingCommitted.bind(this),1151 cancelHandler: this._editingCancelled.bind(this) 1152 });1161 var config = new WebInspector.EditingConfig(); 1162 config.setCommitHandler(this._textNodeEditingCommitted.bind(this)); 1163 config.setCancelHandler(this._editingCancelled.bind(this)); 1164 1165 this._editing = WebInspector.startEditing(textNode, config); 1153 1166 window.getSelection().setBaseAndExtent(textNode, 0, textNode, 1); 1154 1167 … … 1193 1206 tagNameElement.addEventListener('keyup', keyupListener, false); 1194 1207 1195 this._editing = WebInspector.startEditing(tagNameElement, { 1196 context: tagName, 1197 commitHandler: editingComitted.bind(this), 1198 cancelHandler: editingCancelled.bind(this) 1199 }); 1208 var config = new WebInspector.EditingConfig(); 1209 config.setContext(tagName); 1210 config.setCommitHandler(editingComitted.bind(this)); 1211 config.setCancelHandler(editingCancelled.bind(this)); 1212 1213 this._editing = WebInspector.startEditing(tagNameElement, config); 1200 1214 window.getSelection().setBaseAndExtent(tagNameElement, 0, tagNameElement, 1); 1201 1215 return true; … … 1253 1267 } 1254 1268 1255 this._editing = WebInspector.startEditing(this._htmlEditElement, {1256 context: null,1257 commitHandler: commit.bind(this),1258 cancelHandler: dispose.bind(this),1259 multiline: true 1260 });1269 var config = new WebInspector.EditingConfig(); 1270 config.setCommitHandler(commit.bind(this)); 1271 config.setCancelHandler(dispose.bind(this)); 1272 config.setMultiline(true); 1273 1274 this._editing = WebInspector.startEditing(this._htmlEditElement, config); 1261 1275 }, 1262 1276 … … 1363 1377 } 1364 1378 1379 var node = WebInspector.domAgent.nodeForId(nodeId); 1380 1365 1381 // Select it and expand if necessary. We force tree update so that it processes dom events and is up to date. 1366 1382 treeOutline._updateModifiedNodes(); 1367 1368 WebInspector.updateFocusedNode(nodeId); 1369 var newTreeItem = treeOutline.findTreeElement( WebInspector.domAgent.nodeForId(nodeId));1383 treeOutline.selectDOMNode(node, true); 1384 1385 var newTreeItem = treeOutline.findTreeElement(node); 1370 1386 if (wasExpanded) 1371 1387 newTreeItem.expand(); … … 1418 1434 }, 1419 1435 1436 /** 1437 * @param {boolean=} onlySearchQueryChanged 1438 */ 1420 1439 updateTitle: function(onlySearchQueryChanged) 1421 1440 { … … 1442 1461 }, 1443 1462 1463 /** 1464 * @param {WebInspector.DOMNode=} node 1465 * @param {function(string, string, string, boolean=, string=)=} linkify 1466 */ 1444 1467 _buildAttributeDOM: function(parentElement, name, value, node, linkify) 1445 1468 { … … 1466 1489 }, 1467 1490 1491 /** 1492 * @param {function(string, string, string, boolean=, string=)=} linkify 1493 */ 1468 1494 _buildTagDOM: function(parentElement, tagName, isClosingTag, isDistinctTreeElement, linkify) 1469 1495 { 1470 var node = this.representedObject;1496 var node = /** @type WebInspector.DOMNode */ this.representedObject; 1471 1497 var classes = [ "webkit-html-tag" ]; 1472 1498 if (isClosingTag && isDistinctTreeElement) … … 1526 1552 info.titleDOM.appendChild(document.createTextNode("\u200B")); 1527 1553 } 1528 this._buildTagDOM(info.titleDOM, tagName, true, false , false);1554 this._buildTagDOM(info.titleDOM, tagName, true, false); 1529 1555 } 1530 1556 … … 1647 1673 return; 1648 1674 1675 var node = WebInspector.domAgent.nodeForId(nodeId); 1649 1676 // Select it and expand if necessary. We force tree update so that it processes dom events and is up to date. 1650 1677 treeOutline._updateModifiedNodes(); 1651 1652 WebInspector.updateFocusedNode(nodeId); 1678 treeOutline.selectDOMNode(node, true); 1679 1653 1680 if (wasExpanded) { 1654 var newTreeItem = treeOutline.findTreeElement( WebInspector.domAgent.nodeForId(nodeId));1681 var newTreeItem = treeOutline.findTreeElement(node); 1655 1682 if (newTreeItem) 1656 1683 newTreeItem.expand(); … … 1714 1741 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.DocumentUpdated, this._documentUpdated, this); 1715 1742 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.ChildNodeCountUpdated, this._childNodeCountUpdated, this); 1716 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.InspectElementRequested, this._inspectElementRequested, this);1717 1743 1718 1744 this._treeOutline = treeOutline; … … 1766 1792 if (treeElement) 1767 1793 treeElement.hasChildren = event.data.hasChildNodes(); 1768 },1769 1770 _inspectElementRequested: function(event)1771 {1772 var node = event.data;1773 WebInspector.updateFocusedNode(node.id);1774 1794 }, 1775 1795 … … 1822 1842 this._treeOutline.rootDOMNode = null; 1823 1843 this._treeOutline.selectDOMNode(null, false); 1824 WebInspector. highlightDOMNode(0);1844 WebInspector.domAgent.hideDOMNodeHighlight(); 1825 1845 this._recentlyModifiedNodes = []; 1826 1846 } -
trunk/Source/WebCore/inspector/front-end/MetricsSidebarPane.js
r96106 r96805 109 109 return; 110 110 this._highlightMode = mode; 111 WebInspector. highlightDOMNode(nodeId, mode);111 WebInspector.domAgent.highlightDOMNode(nodeId, mode); 112 112 } else { 113 113 delete this._highlightMode; 114 WebInspector. highlightDOMNode(0, "");114 WebInspector.domAgent.hideDOMNodeHighlight(); 115 115 } 116 116 … … 420 420 421 421 if (typeof self._highlightMode !== "undefined") { 422 WebInspector.highlightDOMNode(0, ""); 423 WebInspector.highlightDOMNode(self.node.id, self._highlightMode); 422 WebInspector.domAgent.highlightDOMNode(self.node.id, self._highlightMode); 424 423 } 425 424 -
trunk/Source/WebCore/inspector/front-end/externs.js
r96711 r96805 107 107 108 108 /** 109 * @constructor110 * @extends {TreeOutline}111 * @param {boolean=} omitRootDOMNode112 * @param {boolean=} selectEnabled113 * @param {boolean=} showInElementsPanelEnabled114 */115 WebInspector.ElementsTreeOutline = function(omitRootDOMNode, selectEnabled, showInElementsPanelEnabled)116 {117 }118 119 /**120 109 * @param {NetworkAgent.RequestId} requestId 121 110 * @return {?WebInspector.Resource} … … 203 192 */ 204 193 WebInspector.log = function(message, messageLevel, showConsole) {} 194 195 WebInspector.resourceURLForRelatedNode = function(node, url) {} -
trunk/Source/WebCore/inspector/front-end/inspector.js
r96695 r96805 365 365 }, 366 366 367 buildHighlightConfig: function(mode)368 {369 mode = mode || "all";370 var highlightConfig = { showInfo: mode === "all" };371 if (mode === "all" || mode === "content")372 highlightConfig.contentColor = WebInspector.Color.PageHighlight.Content.toProtocolRGBA();373 374 if (mode === "all" || mode === "padding")375 highlightConfig.paddingColor = WebInspector.Color.PageHighlight.Padding.toProtocolRGBA();376 377 if (mode === "all" || mode === "border")378 highlightConfig.borderColor = WebInspector.Color.PageHighlight.Border.toProtocolRGBA();379 380 if (mode === "all" || mode === "margin")381 highlightConfig.marginColor = WebInspector.Color.PageHighlight.Margin.toProtocolRGBA();382 383 return highlightConfig;384 },385 386 highlightDOMNode: function(nodeId, mode)387 {388 if ("_hideDOMNodeHighlightTimeout" in this) {389 clearTimeout(this._hideDOMNodeHighlightTimeout);390 delete this._hideDOMNodeHighlightTimeout;391 }392 393 this._highlightedDOMNodeId = nodeId;394 if (nodeId)395 DOMAgent.highlightNode(nodeId, this.buildHighlightConfig(mode));396 else397 DOMAgent.hideHighlight();398 },399 400 highlightDOMNodeForTwoSeconds: function(nodeId)401 {402 this.highlightDOMNode(nodeId);403 this._hideDOMNodeHighlightTimeout = setTimeout(this.highlightDOMNode.bind(this, 0), 2000);404 },405 406 wireElementWithDOMNode: function(element, nodeId)407 {408 element.addEventListener("click", this._updateFocusedNode.bind(this, nodeId), false);409 element.addEventListener("mouseover", this.highlightDOMNode.bind(this, nodeId, "all"), false);410 element.addEventListener("mouseout", this.highlightDOMNode.bind(this, 0), false);411 },412 413 _updateFocusedNode: function(nodeId)414 {415 this.setCurrentPanel(this.panels.elements);416 this.panels.elements.updateFocusedNode(nodeId);417 },418 419 367 networkResourceById: function(id) 420 368 { … … 931 879 } 932 880 933 this. highlightDOMNode(0);881 this.domAgent.hideDOMNodeHighlight(); 934 882 935 883 if (!WebInspector.settings.preserveConsoleLog.get()) … … 1072 1020 WebInspector.updateFocusedNode = function(nodeId) 1073 1021 { 1074 this._updateFocusedNode(nodeId); 1075 this.highlightDOMNodeForTwoSeconds(nodeId); 1022 this.panels.elements.revealAndSelectNode(nodeId); 1076 1023 } 1077 1024
Note:
See TracChangeset
for help on using the changeset viewer.