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

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

Issue 2867713006: [Devtools] Added report miss-match link to network product entries (Closed)
Patch Set: changes Created 3 years, 7 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/product_registry_impl/ProductRegistryImpl.js ('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 4e8bf8e121554964239137a24e2f851484702614..16a0c772c8340984cc20ee6d252f18faa0160b8a 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
@@ -607,10 +607,18 @@ SDK.ResourceTreeFrame = class {
}
/**
- * @return {?Protocol.Runtime.StackTrace}
- */
- creationStackTrace() {
- return this._creationStackTrace;
+ * @param {function(!Protocol.Runtime.CallFrame):boolean} searchFn
+ * @return {?Protocol.Runtime.CallFrame}
+ */
+ findCreationCallFrame(searchFn) {
+ var stackTrace = this._creationStackTrace;
+ while (stackTrace) {
+ var foundEntry = stackTrace.callFrames.find(searchFn);
+ if (foundEntry)
+ return foundEntry;
+ stackTrace = this.parent;
+ }
+ return null;
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698