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

Unified Diff: third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js

Issue 2646193003: Revert of Fix UI glitches on Performance and Memory panels (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/profiler/profilesPanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js
diff --git a/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js b/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js
index 9695e4b79e80a6baa3dbe2ba91fb2fca78e2b5af..179e529279978c34d41df04978233c7bc46b73f9 100644
--- a/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js
@@ -698,8 +698,9 @@
context.fillText(text, barX + textPadding, barY + textBaseHeight);
}
+ context.restore();
+
this._drawGroupHeaders(width, height);
- context.restore();
this._drawMarkers();
const headerHeight = this._rulerEnabled ? PerfUI.FlameChart.HeaderHeight : 0;
PerfUI.TimelineGrid.drawCanvasGrid(context, this._calculator, 3, headerHeight);
@@ -875,7 +876,7 @@
var timeWindowRight = this._timeWindowRight;
var timeWindowLeft = this._timeWindowLeft - this._paddingLeft / this._timeToPixel;
var context = /** @type {!CanvasRenderingContext2D} */ (this._canvas.getContext('2d'));
- var barHeight = this._barHeight - 1;
+ var barHeight = this._barHeight - 2;
var entryStartTimes = this._rawTimelineData.entryStartTimes;
var entryTotalTimes = this._rawTimelineData.entryTotalTimes;
@@ -902,9 +903,9 @@
const barWidth = endBarX - barX;
context.beginPath();
context.fillStyle = color;
- context.fillRect(barX, y, barWidth, barHeight);
+ context.fillRect(barX, y, barWidth, barHeight - 1);
this._dataProvider.decorateEntry(
- entryIndex, context, '', barX, y, barWidth, this._barHeight, unclippedBarX, this._timeToPixel);
+ entryIndex, context, '', barX, y, barWidth, barHeight, unclippedBarX, this._timeToPixel);
continue;
}
range.append(new Common.Segment(barX, endBarX, color));
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/profiler/profilesPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698