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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 this._range.textContent = ''; 399 this._range.textContent = '';
400 } 400 }
401 401
402 /** 402 /**
403 * @param {number} minValue 403 * @param {number} minValue
404 * @param {number} maxValue 404 * @param {number} maxValue
405 */ 405 */
406 setRange(minValue, maxValue) { 406 setRange(minValue, maxValue) {
407 var min = this._formatter(minValue); 407 var min = this._formatter(minValue);
408 var max = this._formatter(maxValue); 408 var max = this._formatter(maxValue);
409 this._range.textContent = Common.UIString('[%s\u2009\u2013\u2009%s]', min, m ax); 409 this._range.textContent = Common.UIString('[%s\xa0\u2013\xa0%s]', min, max);
410 } 410 }
411 411
412 /** 412 /**
413 * @param {!Common.Event} event 413 * @param {!Common.Event} event
414 */ 414 */
415 _toggleCounterGraph(event) { 415 _toggleCounterGraph(event) {
416 this._value.classList.toggle('hidden', !this._filter.checked()); 416 this._value.classList.toggle('hidden', !this._filter.checked());
417 this._countersPane.refresh(); 417 this._countersPane.refresh();
418 } 418 }
419 419
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 } 587 }
588 588
589 /** 589 /**
590 * @override 590 * @override
591 * @return {number} 591 * @return {number}
592 */ 592 */
593 boundarySpan() { 593 boundarySpan() {
594 return this._maximumBoundary - this._minimumBoundary; 594 return this._maximumBoundary - this._minimumBoundary;
595 } 595 }
596 }; 596 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698