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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js

Issue 448743002: DevTools: Linkify console stacks with blackboxing consideration. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.TimelineUIUtils} 7 * @extends {WebInspector.TimelineUIUtils}
8 */ 8 */
9 WebInspector.TimelineUIUtilsImpl = function() 9 WebInspector.TimelineUIUtilsImpl = function()
10 { 10 {
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 columnNumber = columnNumber ? columnNumber - 1 : 0; 412 columnNumber = columnNumber ? columnNumber - 1 : 0;
413 return linkifier.linkifyScriptLocation(record.target(), scriptId, url, l ineNumber - 1, columnNumber, "timeline-details"); 413 return linkifier.linkifyScriptLocation(record.target(), scriptId, url, l ineNumber - 1, columnNumber, "timeline-details");
414 } 414 }
415 415
416 /** 416 /**
417 * @return {?Element} 417 * @return {?Element}
418 */ 418 */
419 function linkifyTopCallFrame() 419 function linkifyTopCallFrame()
420 { 420 {
421 if (record.stackTrace()) 421 if (record.stackTrace())
422 return linkifier.linkifyConsoleCallFrame(record.target(), record.sta ckTrace()[0], "timeline-details"); 422 return linkifier.linkifyTopUnblackboxedConsoleCallFrame(record.targe t(), record.stackTrace(), "timeline-details");
423 if (record.callSiteStackTrace()) 423 if (record.callSiteStackTrace())
424 return linkifier.linkifyConsoleCallFrame(record.target(), record.cal lSiteStackTrace()[0], "timeline-details"); 424 return linkifier.linkifyTopUnblackboxedConsoleCallFrame(record.targe t(), record.callSiteStackTrace(), "timeline-details");
425 return null; 425 return null;
426 } 426 }
427 } 427 }
428 428
429 /** 429 /**
430 * @param {string=} recordType 430 * @param {string=} recordType
431 * @return {boolean} 431 * @return {boolean}
432 */ 432 */
433 WebInspector.TimelineUIUtilsImpl._needsPreviewElement = function(recordType) 433 WebInspector.TimelineUIUtilsImpl._needsPreviewElement = function(recordType)
434 { 434 {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 else if (recordType === recordTypes.TimeStamp) 675 else if (recordType === recordTypes.TimeStamp)
676 eventDivider.className += " resources-orange-divider"; 676 eventDivider.className += " resources-orange-divider";
677 else if (recordType === recordTypes.BeginFrame) 677 else if (recordType === recordTypes.BeginFrame)
678 eventDivider.className += " timeline-frame-divider"; 678 eventDivider.className += " timeline-frame-divider";
679 679
680 if (title) 680 if (title)
681 eventDivider.title = title; 681 eventDivider.title = title;
682 682
683 return eventDivider; 683 return eventDivider;
684 } 684 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698