X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fdevtools%2Ffront_end%2Faudits%2FAuditsPanel.js;h=53bb4a310f3a1144e462e3a4eec43e6e3a5d3c3a;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=2c6b9a4dd35f429b0571dc5b33608244ac5d016c;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/devtools/front_end/audits/AuditsPanel.js b/src/third_party/WebKit/Source/devtools/front_end/audits/AuditsPanel.js index 2c6b9a4..53bb4a3 100644 --- a/src/third_party/WebKit/Source/devtools/front_end/audits/AuditsPanel.js +++ b/src/third_party/WebKit/Source/devtools/front_end/audits/AuditsPanel.js @@ -51,8 +51,7 @@ WebInspector.AuditsPanel = function() this._constructCategories(); - var target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.mainTarget()); - this._auditController = new WebInspector.AuditController(target, this); + this._auditController = new WebInspector.AuditController(this); this._launcherView = new WebInspector.AuditLauncherView(this._auditController); for (var id in this.categoriesById) this._launcherView.addCategory(this.categoriesById[id]); @@ -463,9 +462,13 @@ WebInspector.AuditsSidebarTreeElement.prototype = { WebInspector.SidebarTreeElement.prototype.onattach.call(this); }, + /** + * @return {boolean} + */ onselect: function() { this._panel.showLauncherView(); + return true; }, get selectable() @@ -498,9 +501,13 @@ WebInspector.AuditResultSidebarTreeElement = function(panel, results, mainResour } WebInspector.AuditResultSidebarTreeElement.prototype = { + /** + * @return {boolean} + */ onselect: function() { this._panel.showResults(this.results); + return true; }, get selectable()