OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 frameStrip._frame = frame; | 170 frameStrip._frame = frame; |
171 this._frameStripByFrame.set(frame, frameStrip); | 171 this._frameStripByFrame.set(frame, frameStrip); |
172 | 172 |
173 const minWidthForFrameInfo = 60; | 173 const minWidthForFrameInfo = 60; |
174 if (width > minWidthForFrameInfo) | 174 if (width > minWidthForFrameInfo) |
175 frameStrip.textContent = Number.millisToString(frame.endTime - f
rame.startTime, true); | 175 frameStrip.textContent = Number.millisToString(frame.endTime - f
rame.startTime, true); |
176 | 176 |
177 this._frameContainer.appendChild(frameStrip); | 177 this._frameContainer.appendChild(frameStrip); |
178 | 178 |
179 if (actualStart > 0) { | 179 if (actualStart > 0) { |
180 var frameMarker = WebInspector.TimelineUIUtils.createEventDivide
r(WebInspector.TracingTimelineModel.RecordType.BeginFrame); | 180 var frameMarker = WebInspector.TimelineUIUtils.createEventDivide
r(WebInspector.TimelineModel.RecordType.BeginFrame); |
181 frameMarker.style.left = frameStart + "px"; | 181 frameMarker.style.left = frameStart + "px"; |
182 dividers.push(frameMarker); | 182 dividers.push(frameMarker); |
183 } | 183 } |
184 } | 184 } |
185 this._timelineGrid.addEventDividers(dividers); | 185 this._timelineGrid.addEventDividers(dividers); |
186 this._headerElement.appendChild(this._frameContainer); | 186 this._headerElement.appendChild(this._frameContainer); |
187 }, | 187 }, |
188 | 188 |
189 _onFrameDoubleClicked: function(event) | 189 _onFrameDoubleClicked: function(event) |
190 { | 190 { |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 } else { | 1288 } else { |
1289 this._element.classList.add("hidden"); | 1289 this._element.classList.add("hidden"); |
1290 } | 1290 } |
1291 }, | 1291 }, |
1292 | 1292 |
1293 _dispose: function() | 1293 _dispose: function() |
1294 { | 1294 { |
1295 this._element.remove(); | 1295 this._element.remove(); |
1296 } | 1296 } |
1297 } | 1297 } |
OLD | NEW |