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

Unified Diff: Source/devtools/front_end/FlameChart.js

Issue 194713007: TimelinePanel: restore selectedRecord behevior by removing windowFilter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
Index: Source/devtools/front_end/FlameChart.js
diff --git a/Source/devtools/front_end/FlameChart.js b/Source/devtools/front_end/FlameChart.js
index 12d3f5a6f580358ee076f54d57018a4d531582a0..4fb513ff128daaad8ecafadfa369025d00351494 100644
--- a/Source/devtools/front_end/FlameChart.js
+++ b/Source/devtools/front_end/FlameChart.js
@@ -985,6 +985,8 @@ WebInspector.FlameChart.MainPane.prototype = {
var timelineData = this._timelineData();
var barX = this._offsetToPosition(timeRange.startTimeOffset);
var barRight = this._offsetToPosition(timeRange.endTimeOffset);
+ if (barRight === 0 || barX === this._canvas.width)
+ return;
var barWidth = Math.max(barRight - barX, this._minWidth);
var barY = this._levelToHeight(timelineData.entryLevels[entryIndex]);
var style = element.style;
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-window-filter.html ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698