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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js

Issue 2450663004: DevTools: do not allow using 'this' before call into super. (Closed)
Patch Set: rebaselined Created 4 years, 2 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/profiler/CPUProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
index 91f2cf2bfca88476051cd797619d8413946e93d9..7adcc93e91bbf142b65395c0366cd990e6b6c51a 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -31,11 +31,12 @@
*/
WebInspector.CPUProfileView = function(profileHeader)
{
+ WebInspector.ProfileView.call(this);
this._profileHeader = profileHeader;
this.profile = new WebInspector.CPUProfileDataModel(profileHeader._profile || profileHeader.protocolProfile());
this.adjustedTotal = this.profile.profileHead.total;
this.adjustedTotal -= this.profile.idleNode ? this.profile.idleNode.total : 0;
- WebInspector.ProfileView.call(this, new WebInspector.CPUProfileView.NodeFormatter(this));
+ this.initialize(new WebInspector.CPUProfileView.NodeFormatter(this));
};
WebInspector.CPUProfileView.prototype = {

Powered by Google App Engine
This is Rietveld 408576698