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

Side by Side Diff: Source/WebCore/inspector/front-end/ProfileView.js

Issue 10383261: Merge 117582 - Web Inspector: exception in console when pressing % button in CPU profile view (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698