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

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

Issue 354763005: DevTools: timeline doesn't show records in TimelineView the first view was TimelineFlameChart view. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 6 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 | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 05b3cb3f52dd4b9645fa223719496eff1c9de1d9..d675e6334a03398e56fafad3c1887c1008bc0c13 100644
--- a/Source/devtools/front_end/timeline/TimelinePresentationModel.js
+++ b/Source/devtools/front_end/timeline/TimelinePresentationModel.js
@@ -199,6 +199,14 @@ WebInspector.TimelinePresentationModel.prototype = {
this._textFilter = textFilter;
},
+ refreshRecords: function()
+ {
+ this.reset();
+ var modelRecords = this._model.records();
+ for (var i = 0; i < modelRecords.length; ++i)
+ this.addRecord(modelRecords[i]);
+ },
+
invalidateFilteredRecords: function()
{
delete this._filteredRecords;
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698