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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotGridNodes.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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 */ 144 */
145 wasDetached() { 145 wasDetached() {
146 this._dataGrid.nodeWasDetached(this); 146 this._dataGrid.nodeWasDetached(this);
147 } 147 }
148 148
149 /** 149 /**
150 * @param {number} num 150 * @param {number} num
151 * @return {string} 151 * @return {string}
152 */ 152 */
153 _toPercentString(num) { 153 _toPercentString(num) {
154 return num.toFixed(0) + '\u2009%'; // \u2009 is a thin space. 154 return num.toFixed(0) + '\xa0%'; // \xa0 is a non-breaking space.
155 } 155 }
156 156
157 /** 157 /**
158 * @param {number} distance 158 * @param {number} distance
159 * @return {string} 159 * @return {string}
160 */ 160 */
161 _toUIDistance(distance) { 161 _toUIDistance(distance) {
162 var baseSystemDistance = HeapSnapshotModel.baseSystemDistance; 162 var baseSystemDistance = HeapSnapshotModel.baseSystemDistance;
163 return distance >= 0 && distance < baseSystemDistance ? Common.UIString('%d' , distance) : Common.UIString('\u2212'); 163 return distance >= 0 && distance < baseSystemDistance ? Common.UIString('%d' , distance) : Common.UIString('\u2212');
164 } 164 }
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 return cell; 1444 return cell;
1445 } 1445 }
1446 1446
1447 /** 1447 /**
1448 * @return {number} 1448 * @return {number}
1449 */ 1449 */
1450 allocationNodeId() { 1450 allocationNodeId() {
1451 return this._allocationNode.id; 1451 return this._allocationNode.id;
1452 } 1452 }
1453 }; 1453 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698