| 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;
|
|
|