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

Unified Diff: third_party/WebKit/Source/devtools/front_end/audits/AuditResultView.js

Issue 2174863003: DevTools: traverse widget hierarchy to reveal views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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: third_party/WebKit/Source/devtools/front_end/audits/AuditResultView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/audits/AuditResultView.js b/third_party/WebKit/Source/devtools/front_end/audits/AuditResultView.js
index aedc51f86109d559db392fe740b7c34ce5f6bda0..b496b3bc8649de6c77dd604931d983ccea43b284 100644
--- a/third_party/WebKit/Source/devtools/front_end/audits/AuditResultView.js
+++ b/third_party/WebKit/Source/devtools/front_end/audits/AuditResultView.js
@@ -30,29 +30,6 @@
/**
* @constructor
- * @extends {WebInspector.SidebarPaneStack}
- * @param {!Array.<!WebInspector.AuditCategoryResult>} categoryResults
- */
-WebInspector.AuditResultView = function(categoryResults)
-{
- WebInspector.SidebarPaneStack.call(this);
- this.setMinimumSize(100, 25);
- this.element.classList.add("audit-result-view");
-
- function categorySorter(a, b) {
- return (a.title || "").localeCompare(b.title || "");
- }
- categoryResults.sort(categorySorter);
- for (var i = 0; i < categoryResults.length; ++i)
- this.addPane(new WebInspector.AuditCategoryResultPane(categoryResults[i]));
-}
-
-WebInspector.AuditResultView.prototype = {
- __proto__: WebInspector.SidebarPaneStack.prototype
-}
-
-/**
- * @constructor
* @extends {WebInspector.View}
* @param {!WebInspector.AuditCategoryResult} categoryResult
*/
@@ -80,7 +57,7 @@ WebInspector.AuditCategoryResultPane = function(categoryResult)
var treeElement = this._appendResult(this._treeOutline.rootElement(), ruleResult, ruleResult.severity);
treeElement.listItemElement.classList.add("audit-result");
}
- this.requestReveal();
+ this.revealWidget();
}
WebInspector.AuditCategoryResultPane.prototype = {

Powered by Google App Engine
This is Rietveld 408576698