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

Side by Side Diff: Source/devtools/front_end/profiler/heap_snapshot_worker/JSHeapSnapshot.js

Issue 344443003: DevTools: Code fixes for the Closure compiler roll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 }, 149 },
150 150
151 /** 151 /**
152 * @param {function(!WebInspector.HeapSnapshotNode)} action 152 * @param {function(!WebInspector.HeapSnapshotNode)} action
153 * @param {boolean=} userRootsOnly 153 * @param {boolean=} userRootsOnly
154 */ 154 */
155 forEachRoot: function(action, userRootsOnly) 155 forEachRoot: function(action, userRootsOnly)
156 { 156 {
157 /** 157 /**
158 * @param {!WebInspector.HeapSnapshotNode} node 158 * @param {!WebInspector.HeapSnapshotNode} node
159 * @param {!string} name 159 * @param {string} name
160 * @return {?WebInspector.HeapSnapshotNode} 160 * @return {?WebInspector.HeapSnapshotNode}
161 */ 161 */
162 function getChildNodeByName(node, name) 162 function getChildNodeByName(node, name)
163 { 163 {
164 for (var iter = node.edges(); iter.hasNext(); iter.next()) { 164 for (var iter = node.edges(); iter.hasNext(); iter.next()) {
165 var child = iter.edge.node(); 165 var child = iter.edge.node();
166 if (child.name() === name) 166 if (child.name() === name)
167 return child; 167 return child;
168 } 168 }
169 return null; 169 return null;
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 * @return {boolean} 815 * @return {boolean}
816 */ 816 */
817 isWeak: function() 817 isWeak: function()
818 { 818 {
819 return this._edge().isWeak(); 819 return this._edge().isWeak();
820 }, 820 },
821 821
822 __proto__: WebInspector.HeapSnapshotRetainerEdge.prototype 822 __proto__: WebInspector.HeapSnapshotRetainerEdge.prototype
823 } 823 }
824 824
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698