Web Inspector: fix closure compiler warnings in ProfilesPanel
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2013 12:57:45 +0000 (12:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2013 12:57:45 +0000 (12:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111163

Patch by Alexei Filippov <alph@chromium.org> on 2013-03-01
Reviewed by Vsevolod Vlasov.

* inspector/front-end/ProfileLauncherView.js:
(WebInspector.ProfileLauncherView.prototype.addProfileType):
* inspector/front-end/ProfilesPanel.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144444 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/ProfileLauncherView.js
Source/WebCore/inspector/front-end/ProfilesPanel.js

index 55f5e5f..a238bc4 100644 (file)
@@ -1,3 +1,14 @@
+2013-03-01  Alexei Filippov  <alph@chromium.org>
+
+        Web Inspector: fix closure compiler warnings in ProfilesPanel
+        https://bugs.webkit.org/show_bug.cgi?id=111163
+
+        Reviewed by Vsevolod Vlasov.
+
+        * inspector/front-end/ProfileLauncherView.js:
+        (WebInspector.ProfileLauncherView.prototype.addProfileType):
+        * inspector/front-end/ProfilesPanel.js:
+
 2013-03-01  Victor Carbune  <vcarbune@chromium.org>
 
         Support padding, margin and border for internal UA cue styling
index a22dad1..ee322b5 100644 (file)
@@ -101,7 +101,7 @@ WebInspector.ProfileLauncherView.prototype = {
         if (decorationElement)
             labelElement.appendChild(decorationElement);
         if (this._singleProfileMode)
-            this._profileTypeChanged(profileType);
+            this._profileTypeChanged(profileType, null);
     },
 
     _controlButtonClicked: function()
index 930062e..5780086 100644 (file)
@@ -1357,7 +1357,9 @@ WebInspector.CPUProfilerPanel = function()
     this._registerProfileType(new WebInspector.CPUProfileType());
 }
 
-WebInspector.CPUProfilerPanel.prototype.__proto__ = WebInspector.ProfilesPanel.prototype;
+WebInspector.CPUProfilerPanel.prototype = {
+    __proto__: WebInspector.ProfilesPanel.prototype
+}
 
 
 /**
@@ -1370,7 +1372,9 @@ WebInspector.CSSSelectorProfilerPanel = function()
     this._registerProfileType(new WebInspector.CSSSelectorProfileType());
 }
 
-WebInspector.CSSSelectorProfilerPanel.prototype.__proto__ = WebInspector.ProfilesPanel.prototype;
+WebInspector.CSSSelectorProfilerPanel.prototype = {
+    __proto__: WebInspector.ProfilesPanel.prototype
+}
 
 
 /**
@@ -1383,7 +1387,9 @@ WebInspector.HeapProfilerPanel = function()
     this._registerProfileType(new WebInspector.HeapSnapshotProfileType());
 }
 
-WebInspector.HeapProfilerPanel.prototype.__proto__ = WebInspector.ProfilesPanel.prototype;
+WebInspector.HeapProfilerPanel.prototype = {
+    __proto__: WebInspector.ProfilesPanel.prototype
+}
 
 
 /**
@@ -1396,7 +1402,9 @@ WebInspector.CanvasProfilerPanel = function()
     this._registerProfileType(new WebInspector.CanvasProfileType());
 }
 
-WebInspector.CanvasProfilerPanel.prototype.__proto__ = WebInspector.ProfilesPanel.prototype;
+WebInspector.CanvasProfilerPanel.prototype = {
+    __proto__: WebInspector.ProfilesPanel.prototype
+}
 
 
 /**
@@ -1409,7 +1417,9 @@ WebInspector.MemoryChartProfilerPanel = function()
     this._registerProfileType(new WebInspector.NativeMemoryProfileType());
 }
 
-WebInspector.MemoryChartProfilerPanel.prototype.__proto__ = WebInspector.ProfilesPanel.prototype;
+WebInspector.MemoryChartProfilerPanel.prototype = {
+    __proto__: WebInspector.ProfilesPanel.prototype
+}
 
 
 /**
@@ -1422,7 +1432,9 @@ WebInspector.NativeMemoryProfilerPanel = function()
     this._registerProfileType(new WebInspector.NativeSnapshotProfileType());
 }
 
-WebInspector.NativeMemoryProfilerPanel.prototype.__proto__ = WebInspector.ProfilesPanel.prototype;
+WebInspector.NativeMemoryProfilerPanel.prototype = {
+    __proto__: WebInspector.ProfilesPanel.prototype
+}
 
 
 importScript("ProfileDataGridTree.js");