Commit 176ebabb authored by Alexei Filippov's avatar Alexei Filippov Committed by Commit Bot

DevTools: Draw page metrics markers with a solid color.

BUG=901165

Change-Id: Icbdb38619e2ee76d9fa17621718a7613cf72554c
Reviewed-on: https://chromium-review.googlesource.com/c/1330716
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607694}
parent 68d0b06a
...@@ -817,14 +817,12 @@ PerfUI.FlameChart = class extends UI.VBox { ...@@ -817,14 +817,12 @@ PerfUI.FlameChart = class extends UI.VBox {
const h = this._levelHeight(level); const h = this._levelHeight(level);
const padding = 4; const padding = 4;
const width = Math.ceil(UI.measureTextWidth(context, title)) + 2 * padding; const width = Math.ceil(UI.measureTextWidth(context, title)) + 2 * padding;
lastMarkerX = x + width - 1; lastMarkerX = x + width + 1;
lastMarkerLevel = level; lastMarkerLevel = level;
this._markerPositions.set(entryIndex, {x, width}); this._markerPositions.set(entryIndex, {x, width});
context.fillStyle = this._dataProvider.entryColor(entryIndex); context.fillStyle = this._dataProvider.entryColor(entryIndex);
context.fillRect(x, y, width, h - 1); context.fillRect(x, y, width, h - 1);
context.fillStyle = 'white'; context.fillStyle = 'white';
context.fillRect(x + 1, y + 1, width - 2, h - 3);
context.fillStyle = this._dataProvider.textColor(entryIndex);
context.fillText(title, x + padding, y + h - this._textBaseline); context.fillText(title, x + padding, y + h - this._textBaseline);
} }
context.strokeStyle = 'rgba(0, 0, 0, 0.2)'; context.strokeStyle = 'rgba(0, 0, 0, 0.2)';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment