Chromium Code Reviews| 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..185f7f0e341cf6d7f53ae35e48832eb9dd719560 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,22 @@ 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 |
| + */ |
| + initialize: function(root) |
|
dgozman
2016/10/26 00:31:01
@protected
|
| + { |
| + this.root = root; |
| + this._assignDepthsAndParents(); |
| + this.total = this._calculateTotals(this.root); |
| + }, |
| + |
| _assignDepthsAndParents: function() |
| { |
| var root = this.root; |