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

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

Issue 212953003: TimelinePanel: provide scriptId in FunctionCall event. (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/TimelineModel.js
diff --git a/Source/devtools/front_end/TimelineModel.js b/Source/devtools/front_end/TimelineModel.js
index 7c43529dc518bd8a35bfa1a17a54997aa8e26e57..3d03d31c6c6de6f50195b77ecc9566960d79b20a 100644
--- a/Source/devtools/front_end/TimelineModel.js
+++ b/Source/devtools/front_end/TimelineModel.js
@@ -542,7 +542,8 @@ WebInspector.TimelineModel.Record = function(model, record, parentRecord)
this._relatedBackendNodeId = record.data["rootNode"];
else if (record.data["elementId"])
this._relatedBackendNodeId = record.data["elementId"];
- if (record.data["scriptName"]) {
+ if (record.data["scriptName"] || record.data["scriptId"]) {
+ this.scriptId = record.data["scriptId"];
this.scriptName = record.data["scriptName"];
this.scriptLine = record.data["scriptLine"];
}

Powered by Google App Engine
This is Rietveld 408576698