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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ProfileTreeModel.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/sdk/ProfileTreeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ProfileTreeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ProfileTreeModel.js
index d902882d9bd696d154468c379171975a623181cf..3ae80292fc1585a8076c1caa1f0ba5a6f679eabb 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ProfileTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ProfileTreeModel.js
@@ -68,16 +68,23 @@ WebInspector.ProfileNode.prototype = {
/**
* @constructor
- * @param {!WebInspector.ProfileNode} root
*/
-WebInspector.ProfileTreeModel = function(root)
+WebInspector.ProfileTreeModel = function()
{
- this.root = root;
- this._assignDepthsAndParents();
- this.total = this._calculateTotals(this.root);
};
WebInspector.ProfileTreeModel.prototype = {
+ /**
+ * @param {!WebInspector.ProfileNode} root
+ * @protected
+ */
+ initialize: function(root)
+ {
+ this.root = root;
+ this._assignDepthsAndParents();
+ this.total = this._calculateTotals(this.root);
+ },
+
_assignDepthsAndParents: function()
{
var root = this.root;

Powered by Google App Engine
This is Rietveld 408576698