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

Side by Side Diff: tracing/tracing/model/slice.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/unit.html"> 8 <link rel="import" href="/tracing/base/unit.html">
9 <link rel="import" href="/tracing/model/timed_event.html"> 9 <link rel="import" href="/tracing/model/timed_event.html">
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 var parentSliceGroup = this.parentContainer.sliceGroup; 83 var parentSliceGroup = this.parentContainer.sliceGroup;
84 return parentSliceGroup.stableId + '.' + 84 return parentSliceGroup.stableId + '.' +
85 parentSliceGroup.slices.indexOf(this); 85 parentSliceGroup.slices.indexOf(this);
86 }, 86 },
87 87
88 findDescendentSlice: function(targetTitle) { 88 findDescendentSlice: function(targetTitle) {
89 if (!this.subSlices) 89 if (!this.subSlices)
90 return undefined; 90 return undefined;
91 91
92 for (var i = 0; i < this.subSlices.length; i++) { 92 for (var i = 0; i < this.subSlices.length; i++) {
93 if (this.subSlices[i].title == targetTitle) 93 if (this.subSlices[i].title === targetTitle)
94 return this.subSlices[i]; 94 return this.subSlices[i];
95 var slice = this.subSlices[i].findDescendentSlice(targetTitle); 95 var slice = this.subSlices[i].findDescendentSlice(targetTitle);
96 if (slice) return slice; 96 if (slice) return slice;
97 } 97 }
98 return undefined; 98 return undefined;
99 }, 99 },
100 100
101 get mostTopLevelSlice() { 101 get mostTopLevelSlice() {
102 var curSlice = this; 102 var curSlice = this;
103 while (curSlice.parentSlice) 103 while (curSlice.parentSlice)
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return res; 282 return res;
283 } 283 }
284 284
285 }; 285 };
286 286
287 return { 287 return {
288 Slice: Slice 288 Slice: Slice
289 }; 289 };
290 }); 290 });
291 </script> 291 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698