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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js

Issue 2486853002: Timeline: remove TimelineModel inferred properties from TracingModel.Event (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
index 09c8076ef539a516fc8e4b19e667c101894d9f0e..42790c6cd5ecead3f06f98aa77887b469e10d1ae 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
@@ -198,11 +198,7 @@ WebInspector.TimelineProfileTree.eventURL = function(event) {
WebInspector.TimelineProfileTree.eventStackFrame = function(event) {
if (event.name === WebInspector.TimelineModel.RecordType.JSFrame)
return /** @type {?Protocol.Runtime.CallFrame} */ (event.args['data'] || null);
- var topFrame = event.stackTrace && event.stackTrace[0];
- if (topFrame)
- return /** @type {!Protocol.Runtime.CallFrame} */ (topFrame);
- var initiator = event.initiator;
- return /** @type {?Protocol.Runtime.CallFrame} */ (initiator && initiator.stackTrace && initiator.stackTrace[0] || null);
+ return WebInspector.TimelineData.forEvent(event).topFrame();
};
/**

Powered by Google App Engine
This is Rietveld 408576698