minPixel ), }, }) ); } } } // Minimal box to at least show start and total time if (!boxes.length) { boxes.push( div({ className: "requests-list-timings-box filler", key: "filler", style: { width: Math.max(totalTime * waterfallScale, minPixel) }, }) ); } const title = L10N.getFormatStr("networkMenu.totalMS2", totalTime); boxes.push( div( { key: "total", className: "requests-list-timings-total", title, }, title ) ); } else { // Pending requests are marked for start time boxes.push( div({ className: "requests-list-timings-box filler", key: "pending", style: { width: minPixel }, }) ); } return boxes; } render() { const { firstRequestStartedMs, item: { startedMs }, waterfallScale, onWaterfallMouseDown, } = this.props; return dom.td( { className: "requests-list-column requests-list-waterfall", onMouseOver: this.handleMouseOver, }, div( { className: "requests-list-timings", style: { paddingInlineStart: `${ (startedMs - firstRequestStartedMs) * waterfallScale }px`, }, onMouseDown: onWaterfallMouseDown, }, this.timingBoxes() ) ); } }; PK