Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/WebCore/page/inspector/ProfileView.js b/WebCore/page/inspector/ProfileView.js
- index 2296441..630d7b8 100644
- --- a/WebCore/page/inspector/ProfileView.js
- +++ b/WebCore/page/inspector/ProfileView.js
- @@ -195,7 +195,18 @@ WebInspector.ProfileDataGridNode = function(profileView, profileNode)
- this.profileNode = profileNode;
- profileNode._dataGridNode = this;
- - var hasChildren = (profileNode.children.length ? true : false);
- + // Find the first child that is visible. Since we don't want to claim
- + // we have children if all the children are invisible.
- + var hasChildren = false;
- + var children = this.profileNode.children;
- + var childrenLength = children.length;
- + for (var i = 0; i < childrenLength; ++i) {
- + if (children[i].visible) {
- + hasChildren = true;
- + break;
- + }
- + }
- +
- WebInspector.DataGridNode.call(this, null, hasChildren);
- this.addEventListener("populate", this._populate, this);
Add Comment
Please, Sign In to add comment