Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js

Issue 1649553002: [DevTools] Support source map with blackboxing in call frame sidebar, console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components/Linkifier.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 this.callFrameList.addItem(asyncCallFrameItem); 111 this.callFrameList.addItem(asyncCallFrameItem);
112 112
113 var allCallFramesHidden = true; 113 var allCallFramesHidden = true;
114 for (var i = 0, n = callFrames.length; i < n; ++i) { 114 for (var i = 0, n = callFrames.length; i < n; ++i) {
115 var callFrame = callFrames[i]; 115 var callFrame = callFrames[i];
116 var callFrameItem = new WebInspector.CallStackSidebarPane.CallFrame( callFrame, asyncCallFrameItem); 116 var callFrameItem = new WebInspector.CallStackSidebarPane.CallFrame( callFrame, asyncCallFrameItem);
117 callFrameItem.element.addEventListener("click", this._callFrameSelec ted.bind(this, callFrameItem), false); 117 callFrameItem.element.addEventListener("click", this._callFrameSelec ted.bind(this, callFrameItem), false);
118 callFrameItem.element.addEventListener("contextmenu", this._callFram eContextMenu.bind(this, callFrameItem), true); 118 callFrameItem.element.addEventListener("contextmenu", this._callFram eContextMenu.bind(this, callFrameItem), true);
119 this.callFrames.push(callFrameItem); 119 this.callFrames.push(callFrameItem);
120 120
121 if (WebInspector.BlackboxSupport.isBlackboxed(callFrame.script.sourc eURL, callFrame.script.isContentScript())) { 121 var location = this._debuggerModel.createRawLocation(callFrame.scrip t, callFrame.location().lineNumber, callFrame.location().columnNumber);
122 if (WebInspector.BlackboxSupport.isBlackboxedScriptLocation(location )) {
122 callFrameItem.setHidden(true); 123 callFrameItem.setHidden(true);
123 callFrameItem.setDimmed(true); 124 callFrameItem.setDimmed(true);
124 ++this._hiddenCallFrames; 125 ++this._hiddenCallFrames;
125 } else { 126 } else {
126 this.callFrameList.addItem(callFrameItem); 127 this.callFrameList.addItem(callFrameItem);
127 allCallFramesHidden = false; 128 allCallFramesHidden = false;
128 } 129 }
129 } 130 }
130 if (allCallFramesHidden && asyncCallFrameItem) { 131 if (allCallFramesHidden && asyncCallFrameItem) {
131 asyncCallFrameItem.setHidden(true); 132 asyncCallFrameItem.setHidden(true);
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 */ 429 */
429 _update: function(uiLocation) 430 _update: function(uiLocation)
430 { 431 {
431 var text = uiLocation.linkText(); 432 var text = uiLocation.linkText();
432 this.setSubtitle(text.trimMiddle(30)); 433 this.setSubtitle(text.trimMiddle(30));
433 this.subtitleElement.title = text; 434 this.subtitleElement.title = text;
434 }, 435 },
435 436
436 __proto__: WebInspector.UIList.Item.prototype 437 __proto__: WebInspector.UIList.Item.prototype
437 } 438 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components/Linkifier.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698