Chromium Code Reviews| Index: Source/devtools/front_end/timeline/TimelinePanel.js |
| diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js |
| index 1965c8865cdfec4b56cf26552468b09352f747c1..5f9a624e4cbd6138045dcf056a3fc0b0b348ad18 100644 |
| --- a/Source/devtools/front_end/timeline/TimelinePanel.js |
| +++ b/Source/devtools/front_end/timeline/TimelinePanel.js |
| @@ -285,6 +285,29 @@ WebInspector.TimelinePanel.prototype = { |
| }, |
| /** |
| + * @param {!WebInspector.TracingModel.Event} traceEvent |
| + */ |
| + _selectPaintEvent: function(traceEvent) |
|
caseq
2014/07/17 16:10:02
do we need it now?
malch
2014/07/17 16:20:32
Done.
|
| + { |
| + var eventRecord = undefined; |
| + |
| + function findRecordWithEvent(record) |
| + { |
| + if (record.traceEvent() === traceEvent) { |
| + eventRecord = record; |
| + return true; |
| + } |
| + return false; |
| + } |
| + |
| + this._model.forAllRecords(findRecordWithEvent); |
| + if (eventRecord) { |
| + var selection = WebInspector.TimelineSelection.fromRecord(eventRecord); |
| + this.select(selection); |
| + } |
| + }, |
| + |
| + /** |
| * @return {!WebInspector.View} |
| */ |
| _layersView: function() |
| @@ -292,6 +315,7 @@ WebInspector.TimelinePanel.prototype = { |
| if (this._lazyLayersView) |
| return this._lazyLayersView; |
| this._lazyLayersView = new WebInspector.TimelineLayersView(); |
| + this._lazyLayersView.setTimelineModelAndDelegate(this._model, this); |
|
caseq
2014/07/17 16:10:02
ditto
malch
2014/07/17 16:20:32
Need this, as discussed offline.
On 2014/07/17 16:
|
| return this._lazyLayersView; |
| }, |