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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 case recordType.JSFrame: 460 case recordType.JSFrame:
461 detailsText = Timeline.TimelineUIUtils.frameDisplayName(eventData); 461 detailsText = Timeline.TimelineUIUtils.frameDisplayName(eventData);
462 break; 462 break;
463 case recordType.EventDispatch: 463 case recordType.EventDispatch:
464 detailsText = eventData ? eventData['type'] : null; 464 detailsText = eventData ? eventData['type'] : null;
465 break; 465 break;
466 case recordType.Paint: 466 case recordType.Paint:
467 var width = Timeline.TimelineUIUtils.quadWidth(eventData.clip); 467 var width = Timeline.TimelineUIUtils.quadWidth(eventData.clip);
468 var height = Timeline.TimelineUIUtils.quadHeight(eventData.clip); 468 var height = Timeline.TimelineUIUtils.quadHeight(eventData.clip);
469 if (width && height) 469 if (width && height)
470 detailsText = Common.UIString('%d\u2009\u00d7\u2009%d', width, height) ; 470 detailsText = Common.UIString('%d\xa0\u00d7\xa0%d', width, height);
471 break; 471 break;
472 case recordType.ParseHTML: 472 case recordType.ParseHTML:
473 var endLine = event.args['endData'] && event.args['endData']['endLine']; 473 var endLine = event.args['endData'] && event.args['endData']['endLine'];
474 var url = Bindings.displayNameForURL(event.args['beginData']['url']); 474 var url = Bindings.displayNameForURL(event.args['beginData']['url']);
475 detailsText = Common.UIString( 475 detailsText = Common.UIString(
476 '%s [%s\u2026%s]', url, event.args['beginData']['startLine'] + 1, en dLine >= 0 ? endLine + 1 : ''); 476 '%s [%s\u2026%s]', url, event.args['beginData']['startLine'] + 1, en dLine >= 0 ? endLine + 1 : '');
477 break; 477 break;
478 478
479 case recordType.CompileScript: 479 case recordType.CompileScript:
480 case recordType.EvaluateScript: 480 case recordType.EvaluateScript:
(...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 * @param {string=} warningType 2286 * @param {string=} warningType
2287 */ 2287 */
2288 appendWarningRow(event, warningType) { 2288 appendWarningRow(event, warningType) {
2289 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); 2289 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType);
2290 if (warning) 2290 if (warning)
2291 this.appendElementRow(Common.UIString('Warning'), warning, true); 2291 this.appendElementRow(Common.UIString('Warning'), warning, true);
2292 } 2292 }
2293 }; 2293 };
2294 2294
2295 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo wnCache'); 2295 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo wnCache');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698