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

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

Issue 2756103002: DevTools: remove SDK.ResourceTreeFrame.fromXXX methods (Closed)
Patch Set: remove unused code Created 3 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.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 2464fdd987868dcc970c752990692704be97aee1..40fe2a96032e5b60215e9b2b57da0ea743f5464c 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
@@ -504,45 +504,6 @@ SDK.ResourceTreeFrame = class {
}
/**
- * @param {!SDK.ExecutionContext|!SDK.CSSStyleSheetHeader|!SDK.Resource} object
- * @return {?SDK.ResourceTreeFrame}
- */
- static _fromObject(object) {
- var resourceTreeModel = SDK.ResourceTreeModel.fromTarget(object.target());
- var frameId = object.frameId;
- if (!resourceTreeModel || !frameId)
- return null;
- return resourceTreeModel.frameForId(frameId);
- }
-
- /**
- * @param {!SDK.Script} script
- * @return {?SDK.ResourceTreeFrame}
- */
- static fromScript(script) {
- var executionContext = script.executionContext();
- if (!executionContext)
- return null;
- return SDK.ResourceTreeFrame._fromObject(executionContext);
- }
-
- /**
- * @param {!SDK.CSSStyleSheetHeader} header
- * @return {?SDK.ResourceTreeFrame}
- */
- static fromStyleSheet(header) {
- return SDK.ResourceTreeFrame._fromObject(header);
- }
-
- /**
- * @param {!SDK.Resource} resource
- * @return {?SDK.ResourceTreeFrame}
- */
- static fromResource(resource) {
- return SDK.ResourceTreeFrame._fromObject(resource);
- }
-
- /**
* @return {!SDK.Target}
*/
target() {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698