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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartDataProvider.js

Issue 2888683002: DevTools: Fix timeline overview popover sticking at last (Closed)
Patch Set: Created 3 years, 7 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 | « third_party/WebKit/Source/devtools/front_end/perf_ui/timelineOverviewInfo.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartDataProvider.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartDataProvider.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartDataProvider.js
index deb9fba02c5bc082357e025767a9bd0c95aca8a8..9edd0b7d59ba84385136cc14d6ef38d1dfe04565 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartDataProvider.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartDataProvider.js
@@ -990,7 +990,7 @@ Timeline.TimelineFlameChartDataProvider = class extends Common.Object {
* @return {?SDK.TracingModel.Event}
*/
eventByIndex(entryIndex) {
- return this._entryType(entryIndex) === Timeline.TimelineFlameChartDataProvider.EntryType.Event ?
+ return entryIndex >= 0 && this._entryType(entryIndex) === Timeline.TimelineFlameChartDataProvider.EntryType.Event ?
/** @type {!SDK.TracingModel.Event} */ (this._entryData[entryIndex]) :
null;
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/perf_ui/timelineOverviewInfo.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698