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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js

Issue 2781193002: DevTools: Adopt nbsp as unit & thousands separator for broader font support (Closed)
Patch Set: update all uses of thinsp. rebaseline tests. Created 3 years, 8 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 * @unrestricted 6 * @unrestricted
7 * @implements {UI.Searchable} 7 * @implements {UI.Searchable}
8 */ 8 */
9 Timeline.TimelineTreeView = class extends UI.VBox { 9 Timeline.TimelineTreeView = class extends UI.VBox {
10 constructor() { 10 constructor() {
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 value = this._profileNode.totalTime; 562 value = this._profileNode.totalTime;
563 maxTime = this._maxTotalTime; 563 maxTime = this._maxTotalTime;
564 showPercents = true; 564 showPercents = true;
565 break; 565 break;
566 default: 566 default:
567 return null; 567 return null;
568 } 568 }
569 var cell = this.createTD(columnId); 569 var cell = this.createTD(columnId);
570 cell.className = 'numeric-column'; 570 cell.className = 'numeric-column';
571 var textDiv = cell.createChild('div'); 571 var textDiv = cell.createChild('div');
572 textDiv.createChild('span').textContent = Common.UIString('%.1f\u2009ms', va lue); 572 textDiv.createChild('span').textContent = Common.UIString('%.1f\xa0ms', valu e);
573 573
574 if (showPercents && this._treeView._exposePercentages()) { 574 if (showPercents && this._treeView._exposePercentages()) {
575 textDiv.createChild('span', 'percent-column').textContent = 575 textDiv.createChild('span', 'percent-column').textContent =
576 Common.UIString('%.1f\u2009%%', value / this._grandTotalTime * 100); 576 Common.UIString('%.1f\xa0%%', value / this._grandTotalTime * 100);
577 } 577 }
578 if (maxTime) { 578 if (maxTime) {
579 textDiv.classList.add('background-percent-bar'); 579 textDiv.classList.add('background-percent-bar');
580 cell.createChild('div', 'background-bar-container').createChild('div', 'ba ckground-bar').style.width = 580 cell.createChild('div', 'background-bar-container').createChild('div', 'ba ckground-bar').style.width =
581 (value * 100 / maxTime).toFixed(1) + '%'; 581 (value * 100 / maxTime).toFixed(1) + '%';
582 } 582 }
583 return cell; 583 return cell;
584 } 584 }
585 }; 585 };
586 586
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 990
991 _onSelectionChanged() { 991 _onSelectionChanged() {
992 this.dispatchEventToListeners(Timeline.TimelineStackView.Events.SelectionCha nged); 992 this.dispatchEventToListeners(Timeline.TimelineStackView.Events.SelectionCha nged);
993 } 993 }
994 }; 994 };
995 995
996 /** @enum {symbol} */ 996 /** @enum {symbol} */
997 Timeline.TimelineStackView.Events = { 997 Timeline.TimelineStackView.Events = {
998 SelectionChanged: Symbol('SelectionChanged') 998 SelectionChanged: Symbol('SelectionChanged')
999 }; 999 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698