Changeset 186466 in webkit
- Timestamp:
- Jul 7, 2015 10:25:48 AM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r186463 r186466 1 2015-07-07 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Option+Click not jumping to resource 4 https://bugs.webkit.org/show_bug.cgi?id=146498 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Base/Main.js: Always show the tab which contains the represented object. 9 (WebInspector._domNodeWasInspected): 10 (WebInspector._frameWasAdded): 11 (WebInspector.showConsoleTab): 12 (WebInspector.showRepresentedObject): Removed forceShowTab parameter. 13 (WebInspector.showMainFrameDOMTree): 14 (WebInspector.showContentFlowDOMTree): 15 (WebInspector.showSourceCodeForFrame): 16 (WebInspector.showSourceCode): 17 (WebInspector.showSourceCodeLocation): 18 (WebInspector.showOriginalUnformattedSourceCodeLocation): 19 (WebInspector.showOriginalOrFormattedSourceCodeLocation): 20 (WebInspector.showOriginalOrFormattedSourceCodeTextRange): 21 (WebInspector.showResourceRequest): 22 * UserInterface/Controllers/CodeMirrorTokenTrackingController.js: 23 (WebInspector.CodeMirrorTokenTrackingController.prototype._mouseButtonWasReleasedOverEditor): 24 * UserInterface/Protocol/InspectorFrontendAPI.js: 25 (InspectorFrontendAPI.showMainResourceForFrame): 26 * UserInterface/Views/ComputedStyleDetailsPanel.js: 27 (WebInspector.ComputedStyleDetailsPanel.prototype._goToContentFlowArrowWasClicked): 28 (WebInspector.ComputedStyleDetailsPanel): 29 * UserInterface/Views/ObjectTreeBaseTreeElement.js: 30 (WebInspector.ObjectTreeBaseTreeElement.prototype._appendMenusItemsForObject): 31 (WebInspector.ObjectTreeBaseTreeElement): 32 1 33 2015-07-07 Devin Rousso <drousso@apple.com> 2 34 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r186386 r186466 762 762 this.consoleContentView.scopeBar.item(scope).selected = true; 763 763 764 this.showRepresentedObject(this._consoleRepresentedObject , null, true);764 this.showRepresentedObject(this._consoleRepresentedObject); 765 765 766 766 console.assert(this.isShowingConsoleTab()); … … 924 924 }; 925 925 926 WebInspector.showRepresentedObject = function(representedObject, cookie , forceShowTab)926 WebInspector.showRepresentedObject = function(representedObject, cookie) 927 927 { 928 928 var tabContentView = this.tabContentViewForRepresentedObject(representedObject); … … 931 931 return; 932 932 933 if (window.event || forceShowTab) 934 this.tabBrowser.showTabForContentView(tabContentView); 935 933 this.tabBrowser.showTabForContentView(tabContentView); 936 934 tabContentView.showRepresentedObject(representedObject, cookie); 937 935 }; 938 936 939 WebInspector.showMainFrameDOMTree = function(nodeToSelect , forceShowTab)937 WebInspector.showMainFrameDOMTree = function(nodeToSelect) 940 938 { 941 939 console.assert(WebInspector.frameResourceManager.mainFrame); 942 940 if (!WebInspector.frameResourceManager.mainFrame) 943 941 return; 944 this.showRepresentedObject(WebInspector.frameResourceManager.mainFrame.domTree, {nodeToSelect} , forceShowTab);945 }; 946 947 WebInspector.showContentFlowDOMTree = function(contentFlow, nodeToSelect , forceShowTab)948 { 949 this.showRepresentedObject(contentFlow, {nodeToSelect} , forceShowTab);950 }; 951 952 WebInspector.showSourceCodeForFrame = function(frameIdentifier , forceShowTab)942 this.showRepresentedObject(WebInspector.frameResourceManager.mainFrame.domTree, {nodeToSelect}); 943 }; 944 945 WebInspector.showContentFlowDOMTree = function(contentFlow, nodeToSelect) 946 { 947 this.showRepresentedObject(contentFlow, {nodeToSelect}); 948 }; 949 950 WebInspector.showSourceCodeForFrame = function(frameIdentifier) 953 951 { 954 952 var frame = WebInspector.frameResourceManager.frameForIdentifier(frameIdentifier); … … 960 958 this._frameIdentifierToShowSourceCodeWhenAvailable = undefined; 961 959 962 this.showRepresentedObject(frame , null, forceShowTab);963 }; 964 965 WebInspector.showSourceCode = function(sourceCode, positionToReveal, textRangeToSelect, forceUnformatted , forceShowTab)960 this.showRepresentedObject(frame); 961 }; 962 963 WebInspector.showSourceCode = function(sourceCode, positionToReveal, textRangeToSelect, forceUnformatted) 966 964 { 967 965 console.assert(!positionToReveal || positionToReveal instanceof WebInspector.SourceCodePosition, positionToReveal); … … 974 972 975 973 var cookie = positionToReveal ? {lineNumber: positionToReveal.lineNumber, columnNumber: positionToReveal.columnNumber} : {}; 976 this.showRepresentedObject(representedObject, cookie , forceShowTab);977 }; 978 979 WebInspector.showSourceCodeLocation = function(sourceCodeLocation , forceShowTab)980 { 981 this.showSourceCode(sourceCodeLocation.displaySourceCode, sourceCodeLocation.displayPosition() , null, false, forceShowTab);982 }; 983 984 WebInspector.showOriginalUnformattedSourceCodeLocation = function(sourceCodeLocation , forceShowTab)974 this.showRepresentedObject(representedObject, cookie); 975 }; 976 977 WebInspector.showSourceCodeLocation = function(sourceCodeLocation) 978 { 979 this.showSourceCode(sourceCodeLocation.displaySourceCode, sourceCodeLocation.displayPosition()); 980 }; 981 982 WebInspector.showOriginalUnformattedSourceCodeLocation = function(sourceCodeLocation) 985 983 { 986 984 this.showSourceCode(sourceCodeLocation.sourceCode, sourceCodeLocation.position(), null, true); 987 985 }; 988 986 989 WebInspector.showOriginalOrFormattedSourceCodeLocation = function(sourceCodeLocation , forceShowTab)990 { 991 this.showSourceCode(sourceCodeLocation.sourceCode, sourceCodeLocation.formattedPosition() , null, false, forceShowTab);992 }; 993 994 WebInspector.showOriginalOrFormattedSourceCodeTextRange = function(sourceCodeTextRange , forceShowTab)987 WebInspector.showOriginalOrFormattedSourceCodeLocation = function(sourceCodeLocation) 988 { 989 this.showSourceCode(sourceCodeLocation.sourceCode, sourceCodeLocation.formattedPosition()); 990 }; 991 992 WebInspector.showOriginalOrFormattedSourceCodeTextRange = function(sourceCodeTextRange) 995 993 { 996 994 var textRangeToSelect = sourceCodeTextRange.formattedTextRange; 997 this.showSourceCode(sourceCodeTextRange.sourceCode, textRangeToSelect.startPosition(), textRangeToSelect , false, forceShowTab);998 }; 999 1000 WebInspector.showResourceRequest = function(resource , forceShowTab)1001 { 1002 this.showRepresentedObject(resource, {[WebInspector.ResourceClusterContentView.ContentViewIdentifierCookieKey]: WebInspector.ResourceClusterContentView.RequestIdentifier} , forceShowTab);995 this.showSourceCode(sourceCodeTextRange.sourceCode, textRangeToSelect.startPosition(), textRangeToSelect); 996 }; 997 998 WebInspector.showResourceRequest = function(resource) 999 { 1000 this.showRepresentedObject(resource, {[WebInspector.ResourceClusterContentView.ContentViewIdentifierCookieKey]: WebInspector.ResourceClusterContentView.RequestIdentifier}); 1003 1001 }; 1004 1002 … … 1136 1134 function delayedWork() 1137 1135 { 1138 this.showSourceCodeForFrame(frame.id , true);1136 this.showSourceCodeForFrame(frame.id); 1139 1137 } 1140 1138 … … 1533 1531 1534 1532 this.showElementsTab(); 1535 this.showMainFrameDOMTree(event.data.node , true);1533 this.showMainFrameDOMTree(event.data.node); 1536 1534 }; 1537 1535 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js
r182113 r186466 352 352 for (var i = 0; i < marks.length; ++i) { 353 353 if (marks[i] === this._codeMirrorMarkedText) { 354 if (this._delegate && typeof this._delegate.tokenTrackingControllerHighlightedRangeWasClicked === "function") { 355 // Trigger the clicked delegate asynchronously, letting the editor complete handling of the click. 356 setTimeout(function() { this._delegate.tokenTrackingControllerHighlightedRangeWasClicked(this); }.bind(this), 0); 357 } 354 if (this._delegate && typeof this._delegate.tokenTrackingControllerHighlightedRangeWasClicked === "function") 355 this._delegate.tokenTrackingControllerHighlightedRangeWasClicked(this); 356 358 357 break; 359 358 } -
trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorFrontendAPI.js
r183907 r186466 94 94 showMainResourceForFrame: function(frameIdentifier) 95 95 { 96 WebInspector.showSourceCodeForFrame(frameIdentifier , true);96 WebInspector.showSourceCodeForFrame(frameIdentifier); 97 97 }, 98 98 -
trunk/Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js
r185723 r186466 225 225 _goToContentFlowArrowWasClicked() 226 226 { 227 WebInspector.showContentFlowDOMTree(this._contentFlow, this.nodeStyles.node , true);227 WebInspector.showContentFlowDOMTree(this._contentFlow, this.nodeStyles.node); 228 228 } 229 229 }; -
trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeBaseTreeElement.js
r186080 r186466 224 224 225 225 var sourceCodeLocation = sourceCode.createSourceCodeLocation(location.lineNumber, location.columnNumber || 0); 226 WebInspector.showSourceCodeLocation(sourceCodeLocation , true);226 WebInspector.showSourceCodeLocation(sourceCodeLocation); 227 227 }); 228 228 });
Note: See TracChangeset
for help on using the changeset viewer.