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

Unified Diff: Source/devtools/front_end/timeline/TimelinePresentationModel.js

Issue 710113002: DevTools: remove TimelineModel.Events.RecordAdded event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comment Created 6 years, 1 month 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/timeline/TimelinePresentationModel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePresentationModel.js b/Source/devtools/front_end/timeline/TimelinePresentationModel.js
index 19dfd88aeaf1057b60a6a7a082c166cc2ea249cc..0de2c6035e3b3db045dfd50b5e702d9178ea848d 100644
--- a/Source/devtools/front_end/timeline/TimelinePresentationModel.js
+++ b/Source/devtools/front_end/timeline/TimelinePresentationModel.js
@@ -217,6 +217,8 @@ WebInspector.TimelinePresentationModel.prototype = {
*/
filteredRecords: function()
{
+ if (!this._rootRecord.presentationChildren().length)
+ this.refreshRecords();
if (this._filteredRecords)
return this._filteredRecords;
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePowerGraph.js ('k') | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698