Extract Number.bytesToString into number-utilities
Bug: 1050549
Change-Id: Id1d261fbe77d81bcb95886cf78d3e07de24c547a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2168883
Commit-Queue: Jack Franklin <[email protected]>
Reviewed-by: Tim van der Lippe <[email protected]>
diff --git a/front_end/layer_viewer/LayerDetailsView.js b/front_end/layer_viewer/LayerDetailsView.js
index de0005a..f427bec 100644
--- a/front_end/layer_viewer/LayerDetailsView.js
+++ b/front_end/layer_viewer/LayerDetailsView.js
@@ -29,6 +29,7 @@
*/
import * as Common from '../common/common.js';
+import * as Platform from '../platform/platform.js';
import * as SDK from '../sdk/sdk.js';
import * as UI from '../ui/ui.js';
@@ -196,7 +197,7 @@
Common.UIString.UIString('%d × %d (at %d,%d)', layer.width(), layer.height(), layer.offsetX(), layer.offsetY());
this._paintCountCell.parentElement.classList.toggle('hidden', !layer.paintCount());
this._paintCountCell.textContent = layer.paintCount();
- this._memoryEstimateCell.textContent = Number.bytesToString(layer.gpuMemoryUsage());
+ this._memoryEstimateCell.textContent = Platform.NumberUtilities.bytesToString(layer.gpuMemoryUsage());
layer.requestCompositingReasonIds().then(this._updateCompositingReasons.bind(this));
this._scrollRectsCell.removeChildren();
layer.scrollRects().forEach(this._createScrollRectElement.bind(this));