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

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

Issue 2389333002: DevTools: update styles for debugger's CallStackSidebarPane (Closed)
Patch Set: reset result after reorder, address comments Created 4 years, 2 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
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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 * @param {?WebInspector.DebuggerModel.CallFrame} debuggerCallFrame 462 * @param {?WebInspector.DebuggerModel.CallFrame} debuggerCallFrame
463 * @param {!WebInspector.LiveLocationPool} locationPool 463 * @param {!WebInspector.LiveLocationPool} locationPool
464 * @param {!WebInspector.UIList.Item=} asyncCallFrame 464 * @param {!WebInspector.UIList.Item=} asyncCallFrame
465 */ 465 */
466 WebInspector.CallStackSidebarPane.CallFrame = function(functionName, location, l inkifier, debuggerCallFrame, locationPool, asyncCallFrame) 466 WebInspector.CallStackSidebarPane.CallFrame = function(functionName, location, l inkifier, debuggerCallFrame, locationPool, asyncCallFrame)
467 { 467 {
468 WebInspector.UIList.Item.call(this, WebInspector.beautifyFunctionName(functi onName), ""); 468 WebInspector.UIList.Item.call(this, WebInspector.beautifyFunctionName(functi onName), "");
469 this._location = location; 469 this._location = location;
470 this._debuggerCallFrame = debuggerCallFrame; 470 this._debuggerCallFrame = debuggerCallFrame;
471 this._asyncCallFrame = asyncCallFrame; 471 this._asyncCallFrame = asyncCallFrame;
472 472 WebInspector.debuggerWorkspaceBinding.createCallFrameLiveLocation(location, this._update.bind(this), locationPool);
473 if (asyncCallFrame) {
474 var script = location.script();
475 var locationElement = linkifier.linkifyRawLocation(location, script ? sc ript.sourceURL : "");
476 this.subtitleElement.appendChild(locationElement);
477 } else {
478 this._liveLocationPool = new WebInspector.LiveLocationPool();
479 WebInspector.debuggerWorkspaceBinding.createCallFrameLiveLocation(locati on, this._update.bind(this), locationPool);
480 }
481 } 473 }
482 474
483 WebInspector.CallStackSidebarPane.CallFrame.prototype = { 475 WebInspector.CallStackSidebarPane.CallFrame.prototype = {
484 /** 476 /**
485 * @param {!WebInspector.LiveLocation} liveLocation 477 * @param {!WebInspector.LiveLocation} liveLocation
486 */ 478 */
487 _update: function(liveLocation) 479 _update: function(liveLocation)
488 { 480 {
489 var uiLocation = liveLocation.uiLocation(); 481 var uiLocation = liveLocation.uiLocation();
490 if (!uiLocation) 482 if (!uiLocation)
491 return; 483 return;
492 var text = uiLocation.linkText(); 484 var text = uiLocation.linkText();
493 this.setSubtitle(text.trimMiddle(30)); 485 this.setSubtitle(text.trimMiddle(30));
494 this.subtitleElement.title = text; 486 this.subtitleElement.title = text;
495 }, 487 },
496 488
497 __proto__: WebInspector.UIList.Item.prototype 489 __proto__: WebInspector.UIList.Item.prototype
498 } 490 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698