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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js

Issue 2788793002: [Devtools] Added frame grouping to network panel (Closed)
Patch Set: changes Created 3 years, 8 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/network_group_lookup/module.json ('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/sdk/ResourceTreeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
index 42d7afb550c137e8f5cd232b92e63e878bb48440..088f36583caee731220481aca4302988db9683c5 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
@@ -162,12 +162,8 @@ SDK.ResourceTreeModel = class extends SDK.SDKModel {
if (this._frames.has(frameId))
return null;
- var callFrames = null;
- if (stackTrace && stackTrace.callFrames)
- callFrames = stackTrace.callFrames;
-
var parentFrame = parentFrameId ? (this._frames.get(parentFrameId) || null) : null;
- var frame = new SDK.ResourceTreeFrame(this, parentFrame, frameId, null, callFrames);
+ var frame = new SDK.ResourceTreeFrame(this, parentFrame, frameId, null, stackTrace || null);
if (frame.isMainFrame() && this.mainFrame) {
// Navigation to the new backend process.
this._frameDetached(this.mainFrame.id);
@@ -493,7 +489,7 @@ SDK.ResourceTreeFrame = class {
* @param {?SDK.ResourceTreeFrame} parentFrame
* @param {!Protocol.Page.FrameId} frameId
* @param {?Protocol.Page.Frame} payload
- * @param {?Array<!Protocol.Runtime.CallFrame>} creationStackTrace
+ * @param {?Protocol.Runtime.StackTrace} creationStackTrace
*/
constructor(model, parentFrame, frameId, payload, creationStackTrace) {
this._model = model;
@@ -582,6 +578,13 @@ SDK.ResourceTreeFrame = class {
}
/**
+ * @return {?Protocol.Runtime.StackTrace}
+ */
+ creationStackTrace() {
+ return this._creationStackTrace;
+ }
+
+ /**
* @return {boolean}
*/
isMainFrame() {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network_group_lookup/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698