Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / AuditsPanel.js
index 1603040..af52118 100644 (file)
 
 /**
  * @constructor
- * @extends {WebInspector.Panel}
+ * @extends {WebInspector.PanelWithSidebarTree}
  */
 WebInspector.AuditsPanel = function()
 {
-    WebInspector.Panel.call(this, "audits");
+    WebInspector.PanelWithSidebarTree.call(this, "audits");
     this.registerRequiredCSS("panelEnablerView.css");
     this.registerRequiredCSS("auditsPanel.css");
-
-    this.createSidebarViewWithTree();
+    this.setMainElementConstraints(215);
 
     this.auditsTreeElement = new WebInspector.SidebarSectionTreeElement("", {}, true);
     this.sidebarTree.appendChild(this.auditsTreeElement);
@@ -154,7 +153,7 @@ WebInspector.AuditsPanel.prototype = {
         this._visibleView = x;
 
         if (x)
-            this.splitView.setMainView(x);
+            x.show(this.mainElement());
     },
 
     wasShown: function()
@@ -170,7 +169,7 @@ WebInspector.AuditsPanel.prototype = {
         this.auditResultsTreeElement.removeChildren();
     },
 
-    __proto__: WebInspector.Panel.prototype
+    __proto__: WebInspector.PanelWithSidebarTree.prototype
 }
 
 /**