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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.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, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
index 76acb99e1078a1cee3b089b0e00722b2a5f16cac..6c41541b99cfa8aa31d5c6e06b7f06e962ac1e16 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -253,7 +253,7 @@ Profiler.CPUProfileView.NodeFormatter = class {
* @return {string}
*/
formatValue(value) {
- return Common.UIString('%.1f\u2009ms', value);
+ return Common.UIString('%.1f\xa0ms', value);
}
/**
@@ -263,7 +263,7 @@ Profiler.CPUProfileView.NodeFormatter = class {
* @return {string}
*/
formatPercent(value, node) {
- return node.profileNode === this._profileView.profile.idleNode ? '' : Common.UIString('%.2f\u2009%%', value);
+ return node.profileNode === this._profileView.profile.idleNode ? '' : Common.UIString('%.2f\xa0%%', value);
}
/**
@@ -376,7 +376,7 @@ Profiler.CPUFlameChartDataProvider = class extends Profiler.ProfileFlameChartDat
if (ms === 0)
return '0';
if (ms < 1000)
- return Common.UIString('%.1f\u2009ms', ms);
+ return Common.UIString('%.1f\xa0ms', ms);
return Number.secondsToString(ms / 1000, true);
}
var name = UI.beautifyFunctionName(node.functionName);

Powered by Google App Engine
This is Rietveld 408576698