| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 for (var index = 0; index < count; ++index) | 170 for (var index = 0; index < count; ++index) |
| 171 this.dataGrid.rootNode().appendChild(children[index]); | 171 this.dataGrid.rootNode().appendChild(children[index]); |
| 172 | 172 |
| 173 if (selectedProfileNode) | 173 if (selectedProfileNode) |
| 174 selectedProfileNode.selected = true; | 174 selectedProfileNode.selected = true; |
| 175 }, | 175 }, |
| 176 | 176 |
| 177 refreshVisibleData: function() | 177 refreshVisibleData: function() |
| 178 { | 178 { |
| 179 var child = this.dataGrid.children[0]; | 179 var child = this.dataGrid.rootNode().children[0]; |
| 180 while (child) { | 180 while (child) { |
| 181 child.refresh(); | 181 child.refresh(); |
| 182 child = child.traverseNextNode(false, null, true); | 182 child = child.traverseNextNode(false, null, true); |
| 183 } | 183 } |
| 184 }, | 184 }, |
| 185 | 185 |
| 186 refreshShowAsPercents: function() | 186 refreshShowAsPercents: function() |
| 187 { | 187 { |
| 188 this._updatePercentButton(); | 188 this._updatePercentButton(); |
| 189 this.refreshVisibleData(); | 189 this.refreshVisibleData(); |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 return new WebInspector.ProfileHeader(WebInspector.CPUProfileType.TypeId
, WebInspector.UIString("Recording\u2026")); | 623 return new WebInspector.ProfileHeader(WebInspector.CPUProfileType.TypeId
, WebInspector.UIString("Recording\u2026")); |
| 624 }, | 624 }, |
| 625 | 625 |
| 626 createProfile: function(profile) | 626 createProfile: function(profile) |
| 627 { | 627 { |
| 628 return new WebInspector.ProfileHeader(profile.typeId, profile.title, pro
file.uid); | 628 return new WebInspector.ProfileHeader(profile.typeId, profile.title, pro
file.uid); |
| 629 } | 629 } |
| 630 } | 630 } |
| 631 | 631 |
| 632 WebInspector.CPUProfileType.prototype.__proto__ = WebInspector.ProfileType.proto
type; | 632 WebInspector.CPUProfileType.prototype.__proto__ = WebInspector.ProfileType.proto
type; |
| OLD | NEW |